如何在UBuntu中将Python 2.7更改为Python 3,6?
How to Change Change Python 2.7 to Python 3,6 in UBuntu?
我需要在我的项目中使用 Python 3.6,我将我的路径 ./bashrc
更改为:
alias python=python3
在第一行。
我的问题是,我需要使用 Pip
和 Pipenv
,当我尝试安装这些软件包时,它们是为 python 2.7
安装的,而当我 运行这些命令,它们 运行 和 python2.7
.
我需要将我的 Python 路径更改为 3.6,并且 Pip
和 Pipenv
与 Python 3.6.
一起使用
我该怎么办?
为 Ubuntu 安装 Python 3 版本的 Pip:$ apt install python3-pip
并使用 $ pip3
调用它
我需要在我的项目中使用 Python 3.6,我将我的路径 ./bashrc
更改为:
alias python=python3
在第一行。
我的问题是,我需要使用 Pip
和 Pipenv
,当我尝试安装这些软件包时,它们是为 python 2.7
安装的,而当我 运行这些命令,它们 运行 和 python2.7
.
我需要将我的 Python 路径更改为 3.6,并且 Pip
和 Pipenv
与 Python 3.6.
我该怎么办?
为 Ubuntu 安装 Python 3 版本的 Pip:$ apt install python3-pip
并使用 $ pip3