$ conda activate new_env$ conda install package_name==version 使用pip安装软件包如果以上方法都无法解决问题,你可以尝试使用pip来安装软件包。在终端中输入以下命令:$ pip install package_name==version这将使用pip来安装指定版本的软件包。请注意,如果你的系统同时安装了Python 2和Python 3,你可能需要使用pip3...
condainstallpython=3.9 1. 验证Python版本: 安装完新的Python版本后,可以通过以下命令来验证Python版本: python--version 1. 通过以上步骤,我们可以成功更新conda环境中的Python版本。 代码示例 下面是一个完整的代码示例,演示了如何更新conda环境中的Python版本: # 创建新环境conda create--namenew_envpython=3.9# ...
conda create--name<环境名称>python=<Python版本号> 1. 其中,<环境名称>是您给新环境取的名字,<Python版本号>是您想要使用的Python版本号。 例如,要创建一个名为myenv的Python 3.8环境,可以运行以下命令: conda create--namemyenvpython=3.8 1. 接下来,conda将会下载并安装指定版本的Python,以及与之兼容的其他...
https://www.bytezonex.com/archives/17.html 查看可用的Python版本 要查看conda可以安装的Python版本的列表,您可以在终端窗口或Anaconda提示符中运行以下命令: condasearch--full-name python 这将列出所有名称完全为python的包,以及它们的版本和构建信息。例如: # Name Version Build Channelpython 2.7.10 0 pkgs/...
conda install -n ENV_NAME PACKAGE_NAME 可以这样做,但是完全没必要,建议先激活需要安装的环境,然后再安装 conda install -n python2.7 pandas#将pandas安装在环境python2.7中 当前环境包更新 conda update PACKAGE_NAME conda update pandas 指定环境包更新 conda update -n ENV_NAME PACKAGE_NAME 包卸载 ...
Pipfile:用于保存项目的python版本、依赖包等相关信息。该文件可以单独移放到其他项目内,用于项目虚拟环境的建立和依赖包的安装 Pipfile.lock:用于对Pipfile的锁定 1. 安装pipenv 代码语言:javascript 代码运行次数:0 运行 AI代码解释 pip install pipenv-i https://pypi.tuna.tsinghua.edu.cn/simple ...
-V, --version Show the conda version number and exit. conda commands available from other packages: env 新建一个python环境 $ conda create -n torchpython=3.8 安装之后的提示,读者请记住这两个命令: # # To activate this environment, use
conda install -y -c bioconda quast I get this error when trying to build the image: UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment: Specifications: - quast -> python[version='2.7.*|>=2.7,<2.8.0a0|>=3.5...
可通过克隆+删除原环境实现#复制环境 clone envconda create -n <new-name> --clone<from-env>#print version of python in current envpython --version conda list python conda ... -y# -y选项表示命令无需控制台提示确认# install package in env 安装依赖包conda install [pkg[=version]] [-n <env...
This is related to issues #1733 and #2463 but I've not been able to resolve my issue using that information. I'm on MacOS High Sierra. I was using conda 4.4.4 with python3.5. I tried to install a package (the name of the package is immat...