如何强制 pip 安装最新版本的 django?
How to force pip to install last version of django?
我的 ubuntu 上有很多版本的 python。我已经使用别名将 python 命令的默认版本设置为 3.7。
我已经使用 virtualenvwrapper 创建了一个虚拟环境,并想在这个虚拟环境中安装 django。如果我键入 python 命令激活此虚拟后,版本 3.7 运行。但是,如果我输入 'pip install Django',则会安装与 python 2.7 相关的旧版本 1.13。
我尝试使用 'pip install Django==2.2.6' 但没有成功。
它说:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
如何强制 pip 安装与 python 3.7 相关的版本?
你可以试试这个:
pip install django==type django version here which you want to insatll
使用pip3 install Django==2.2.6
你应该看看 pyenv 在同一系统上管理不同版本的 Python
我的 ubuntu 上有很多版本的 python。我已经使用别名将 python 命令的默认版本设置为 3.7。 我已经使用 virtualenvwrapper 创建了一个虚拟环境,并想在这个虚拟环境中安装 django。如果我键入 python 命令激活此虚拟后,版本 3.7 运行。但是,如果我输入 'pip install Django',则会安装与 python 2.7 相关的旧版本 1.13。
我尝试使用 'pip install Django==2.2.6' 但没有成功。 它说:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
如何强制 pip 安装与 python 3.7 相关的版本?
你可以试试这个:
pip install django==type django version here which you want to insatll
使用pip3 install Django==2.2.6
你应该看看 pyenv 在同一系统上管理不同版本的 Python