Skip to content

conda创建虚拟环境

环境变量

bash
anaconda
anaconda\Scripts
anaconda\Library\bin
anaconda\Library\mingw-w64\bin

基础操作

bash
# 设置镜像源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 初始化powershell
conda init powershell
# 创建虚拟环境
conda create --name name python=3.0
# 激活环境
conda activate name
# 安装软件包
conda install --file requirements.txt
pip install -r requirements.txt
# 删除虚拟环境
conda remove --name name  --all

允许脚本运行

bash
set-ExecutionPolicy RemoteSigned