
conda在Linux上创建虚拟环境
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
1. 普通方式创建虚拟环境
conda create -n name(xxx) python=3.7.13(python版本自己指定)
2. 如果想自己指定虚拟环境安装的位置, 使用以下命令安装:
conda create --prefix=/data/disk-2T/xxxxx/anaconda3/envs/uie_env python==3.7.13
- 其中xxxx: 代表的是服务器的用户名
--prefix: 表示指定的位置
envs : 如果没有先手动创建, 如果有忽略此步
uie_env: 这个是创建的虚拟环境的名字
3.可以查看是否创建成功, 或是有哪些虚拟环境
conda env list
4. 创建完虚拟环境之后, 切入虚拟环境的命令
conda activate uie_env
5. 退出虚拟环境
conda deactivate
6. 创建为虚拟环境后,想要在notebook中添加, 那么需要切换到虚拟环境中, 然后执行以下命令:
pip install ipykernel && python -m ipykernel install --user --name=hxjxxx
7. 删除虚拟环境
# 删除虚拟环境的全部内容
conda remove -n name --all
以上即为conda安装虚拟环境, 及其简单实用的操作命令, 预祝大家使用愉快!




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)