当前位置:网站首页>【使用指南】使用公共的conda创建环境
【使用指南】使用公共的conda创建环境
2022-06-22 04:39:00 【鲤鱼王的成长之路】
添加指定内容
打开/home/USER_NAME/.bashrc,在里面添加如下内容。当然这里面有些东西要自己调整,比如cuda的版本。
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/share/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/share/anaconda3/etc/profile.d/conda.sh" ]; then
. "/share/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/share/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# PATH setttings
export CUDA_HOME=/usr/local/cuda-11.1
创建虚拟环境
conda create -n pytorch python=3.7
说明
必须要有公共的conda,也必须要有已经创建好的用户。
边栏推荐
- Tencent side
- Take you to develop an efficiency enhancing tool -- vscode plug-in
- Basic concept of graph
- QML控件类型:SwipeView、PageIndicator
- mongo模糊查询,带有特殊字符需要转义,再去查询
- LeetCode 437. Path sum III - binary tree series question 13
- Some details
- Calculation of audio frame size
- Tianyang technology - Bank of Ningbo interview question [Hangzhou multi tester] [Hangzhou multi tester \wang Sir]
- Spark - Executor 初始化 && 报警都进行1次
猜你喜欢

Django learning - model and database operation (II)

Windows10 cannot access LAN shared folder

Overrides vs overloads of methods

POSIX semaphore

系统整理|这个模型开发前的重要步骤有多少童鞋忘记细心做好(实操)

Circuit board layout and wiring precautions for analog / digital mixed signals

利用PuTTY配置端口映射,实现外网对服务器的访问

Interaction between C language and Lua (practice 3)

When the move protocol beta is in progress, the ecological core equity Momo is divided

KS004 基于SSH通讯录系统设计与实现
随机推荐
WPF DataContext 使用(2)
IDEA安装及其使用详解教程
《数据库原理》期末考试题
When the move protocol beta is in progress, the ecological core equity Momo is divided
使用Echart绘制3D饼环图、仪表盘、电池图
Solid smart contract interview questions
Topological sorting
Golang为什么不推荐使用this/self/me/that/_this
解决Swagger2显示UI界面但是没内容
Active learning overview, strategy and uncertainty measurement
nest. Module dependency transitivity in JS practice
Use echart to draw 3D pie chart, dashboard and battery diagram
ln n, n^k , a^n, n!, The limit problem of n^n
Spark - executor initialization &
mysql常用sql
Researcher of Shangtang intelligent medical team interprets organ image processing under intelligent medical treatment
KS004 基于SSH通讯录系统设计与实现
Mongo Fuzzy query, with Special Characters need to escape, to Query
What is the value of the FC2 new domain name? How to resolve to a website?
How SQL server generates change scripts