当前位置:网站首页>Configure server environment
Configure server environment
2022-06-30 19:27:00 【Know what you know and learn what you don't】
vscode terminal
cd /home/503-2/ cp Anaconda3-2022.05-Linux-x86_64.sh /home/user
user For your user name
1. install anaconda
sh Anaconda3-2022.05-Linux-x86_64.sh The previous default selection is OK always enter The final choice yes
stay anaconda Install in
Create a new one of your own python Version environment
conda create -n name python=3.8 name: Your environment name , Customize
Activate your new environment
conda activate name
Install... In your own environment torch
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia
Tested available
2. To configure cuda
Input
vi .bashrc
add to
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}3. Close your remote connection and reconnect
Input
nvcc -V
Output
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:15:46_PDT_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0
success !!!!
4. Direct use by oneself anaconda
Reference blog :
Use your own environment adopt conda activate name To use the environment you created , The name of the environment I created before is seg, So I'll type in
conda activate seg 1 Just change the environment from base Become mine seg
If you want to go back base Environmental Science , You can enter
conda deactivate 1 If you want to see which environments are currently available, you can enter
conda env list 1 Want to delete the environment , You can enter ,name Replace it with the environment name you want to delete .
conda env remove -n name ———————————————— Copyright notice : This paper is about CSDN Blogger 「 watermelon 6」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement . Link to the original text : Build your own... On the server python Environmental Science ( For Xiaobai )_ watermelon 6 The blog of -CSDN Blog _ The server python Environment building
Build your own... On the server python Environmental Science ( For Xiaobai )
stay linux Configure the virtual environment on the server --python+TensorFlow
Deep learning experimental basis 02: The lab server uses
Install on the lab server anaconda Environment and simple to use
How to be in Linux Installation on server Anaconda( Hyperdetail )
边栏推荐
猜你喜欢
随机推荐
小小笔记-整型提升(C语言)
Unity技术手册-初探性能优化
Teach you how to write selenium test cases
ros advertise 发布数据小技巧--latch配置
Mipi protocol in RFFE
如何利用 xUnit 框架对测试用例进行维护?
How to use xUnit framework to maintain test cases?
配置服务器环境
不同制造工艺对PCB上的焊盘的影响和要求
传统微服务框架如何无缝过渡到服务网格 ASM
教你Selenium 测试用例编写
France a+ France VOC label highest environmental protection level
新版EasyGBS如何配置WebRTC视频流格式播放?
4个技巧告诉你,如何使用SMS促进业务销售?
torch stack() meshgrid()
MySQL recursion
简述机器学习中的特征工程
Unity technical manual - preliminary performance optimization
详解kubernetes备份恢复利器 Velero | 深入了解Carina系列第三期
全栈代码测试覆盖率及用例发现系统的建设和实践









