Closed Makeem49 closed 3 years ago
Try removing psycopg2 from your requirements file, leaving only psycopg2-binary. If that still causes psycopg2 to try to install, then the problem is that the base OS that you are using in your container image is not recognized as a valid binary platform by Python, so pip still attempts an install from source.
I removed it and it was able to run without any error. Thanks
Hello Miguel, your flask web development book has helped me a lot in build flask app. I decided to use postgress as my database. While installing it using docker, I'm getting bunch of error relation to postgress. Below is the error.
My requirement file :
Server
Flask==0.10.1 gunicorn==20.1.0 werkzeug==0.14.1
flask-wtforms
Flask-WTF==0.9.5 WTForms-Components==0.9.7
SQLAlchemy
psycopg2-binary == 2.8.6 # I did this because it was requesting for it. psycopg2==2.8.1 Flask-SQLAlchemy==2.1
test
pytest==5.1.0 pytest-cov==2.7.1 flake8==3.7.8
Tasks
redis==3.3.7
CLI.
Click==6.4
Extensions.
flask-debugtoolbar==0.10.0 Flask-Mail==0.9.1
Please kindly save me from this error. Thanks