[英]Install Django on python 3.8 in Windows
I'm trying to install django
on python 3.8
by command pip install django
but I got an error:我正在尝试通过命令
pip install django
django
在python 3.8
上安装 django 安装 Z2B9AFB89A6ACC1575B159BFCA38D1
Could not find a version that satisfies the requirement django (from versions: none)
what can I do?我能做些什么?
i guess you are using linux distro, maybe you should use pip3
or pip3.8
(for python 3
) instead of pip
(for python 2
) i guess you are using linux distro, maybe you should use
pip3
or pip3.8
(for python 3
) instead of pip
(for python 2
)
refer to this topic https://packaging.python.org/tutorials/installing-packages/#requirements-for-installing-packages请参阅此主题https://packaging.python.org/tutorials/installing-packages/#requirements-for-installing-packages
Due to the way most Linux distributions are handling the Python 3 migration, Linux users using the system Python without creating a virtual environment first should replace the python command in this tutorial with python3 and the python -m pip command with python3 -m pip --user.
Due to the way most Linux distributions are handling the Python 3 migration, Linux users using the system Python without creating a virtual environment first should replace the python command in this tutorial with python3 and the python -m pip command with python3 -m pip --用户。 Do not run any of the commands in this tutorial with sudo: if you get a permissions error, come back to the section on creating virtual environments, set one up, and then continue with the tutorial as written.
不要使用 sudo 运行本教程中的任何命令:如果出现权限错误,请返回创建虚拟环境的部分,进行设置,然后继续按照编写的教程进行操作。
pip3 --version
pip3 install django # it will install the last version of django
or或者
python3 --version
python3 -m pip --version
python3 -m pip install django # it will install the last version of django
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.