I have been following this tutorial ( https://tutorial.djangogirls.org/en/django_installation/ ) to learn some python but I have become stuck at the 'Django installation' step. I have managed to create a virtual environment and the.txt file but trying
(myvenv) (base) PS C:\users\JD\djangogirls> pip install -r requirements.txt
I get the error 'could not find version that satisfies requirement'and'no matching distribution found'. This error occurs when I have entered versions 2.2.4 & 3.0.5 of Django into the.txt file.
Have also just tried 'pip install django' and have come across the same errors. Have tried in the windows command prompt but i get an error stating pip is not recognized as an internal or external command.
I have python 3.7.6 installed.
Any help is very much appreciated
After enabling your virtualenv follow to following code
pip install django==2.2.2
Add django==2.2.2 in requirements.txt
pip install -r reqirements.txt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.