To deploy my Flask application, I have added a runtime.txt file otherwise Netlify defaults to Python 2.7. In the runtime file, I wrote
python-3.7.2. When I deploy it on Netlify, the build keeps failing.
This is the error that I get.
3:19:04 PM: Installing dependencies 3:19:04 PM: /usr/local/bin/run-build-functions.sh: line 170: /opt/buildhome/pythonpython- 3.7.2/bin/activate: No such file or directory 3:19:04 PM: Error setting python version from runtime.txt 3:19:04 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
I’ve read the docs, searched online for 3 hours and still no fix. Any advice would be greatly appreciated.