2024-04-29 14:06:31 发布
网友
我有Python 2.7作为根目录。我需要在Python3.6中安装“statistics”包,它不在anaconda navigator的环境中。如何使用conda或pip为二级Python环境安装“statistics”?
conda
pip
通过运行以下命令创建新的Python3环境:
conda create --name python3 python=3
如果希望默认安装所有标准的anaconda软件包,请执行以下操作:
conda create --name python3 python=3 anaconda
无论何时需要使用python3运行:
python3
activate python3
然后正常使用命令行。因此,如果您想在python3环境中安装某些内容,请确保首先activate python3。
注意,python 3 has it's own statistics module可能很有用,如果您愿意,可以使用这个模块has been ported to python 2。
通过运行以下命令创建新的Python3环境:
如果希望默认安装所有标准的anaconda软件包,请执行以下操作:
无论何时需要使用
python3
运行:然后正常使用命令行。因此,如果您想在
python3
环境中安装某些内容,请确保首先activate python3
。注意,python 3 has it's own statistics module可能很有用,如果您愿意,可以使用这个模块has been ported to python 2。
相关问题 更多 >
编程相关推荐