coding duck
coding duck

Reputation: 131

Virtualenv can't seem to find Flask "Could not find a version that satisfies the requirement"

I'm working through one of the tutorials on Google App Engine and am running into an odd issue while installing dependencies using the following command:

pip install -t lib -r requirements.txt

while in my virtualenv. As I understand it should simply be downloading the dependencies specified in requirements.txt, however I keep getting the error:

Could not find a version that satisfies the requirement Flask==1.0.2 (from -r requirements.txt (line 1)) (from versions: )
No matching distribution found for Flask==1.0.2 (from -r requirements.txt (line 1))

Now this is very confusing because according to Flask's website, the most recent version is exactly 1.0.2, so I can't imagine that is the problem. I'm not very familiar with installing dependencies this way, is there something I'm overlooking?

Note: this is what requirements.txt looks like:

Flask==1.0.2
Werkzeug<0.13.0,>=0.12.0

Upvotes: 1

Views: 526

Answers (1)

coding duck
coding duck

Reputation: 131

Solution for me turned out to be updating python and running

pip install urllib3[secure]

as there seemed to be some issue with certificate authentication packages i.e. SSL

Upvotes: 1

Related Questions