centos中miniconda创建python3.7
时间: 2024-10-10 07:13:58 浏览: 96
在CentOS系统中安装Miniconda并创建Python 3.7版本,你可以按照以下步骤操作:
下载Miniconda: 首先访问Miniconda官网(https://docs.conda.io/en/latest/miniconda.html),找到适用于Linux的最新版本的Miniconda安装包,通常推荐下载`Miniconda3-latest-Linux-x86_64.sh`文件。
安装Miniconda: 使用命令行终端(
Terminal
或Console
),移动到下载目录,然后运行安装脚本,添加-b
参数使其以非交互模式安装:chmod +x Miniconda3-latest-Linux-x86_64.sh ./Miniconda3-latest-Linux-x86_64.sh -b
安装过程中可能会询问是否将Miniconda添加到PATH环境变量中,通常选择
yes
以便后续直接使用。激活Python 3.7: 安装完成后,你需要激活新版本的Python。打开一个新的终端会话,输入以下命令:
conda create -n python37 python=3.7
这里
-n python37
表示创建名为python37
的环境,python=3.7
指定Python版本为3.7。激活Python环境: 要使用这个Python 3.7环境,需要激活它:
source activate python37
现在你应该可以在终端中看到
(python37)
符号表示已成功激活。验证安装: 检查Python版本:
python --version
相关推荐

















