当前位置: 首页 > news >正文

阿里云服务器(vgn7i-vws) anaconda(py39)+pytorch1.12.0(cu113)

用xshell连接ip地址,端口号22,输入用户密码

安装anaconda 2022 10 py3.9

wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh  

sha256sum Anaconda3-2022.10-Linux-x86_64.sh #校验数据完整性

chmod u+x Anaconda3-2022.10-Linux-x86_64.sh #添加执行权限

bash Anaconda3-2022.10-Linux-x86_64.sh #执行安装脚本

# Do you accept the license terms? [yes|no]
yes
/home/anaconda3
yes
#添加环境变量
vim /etc/profile
i
(末尾)export PATH=/home/develop/anaconda3/bin:$PATH 

:wq! 

#查看conda版本
conda -V
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --show-sources

# 查看硬件版本,阿里云vgn7i-vws公共镜像需管理员权限装显卡驱动
lspci | grep -i vga
lspci | grep -i nvidia

安装驱动

sudo apt-get update
apt install ubuntu-drivers-common
ubuntu-drivers devices

sudo ubuntu-drivers autoinstall
查看驱动
nvidia-smi(看到11.4版本)
wget  ……cuda11.4.sh
bash cuda11.4.sh 
wget ……cudnn-CUDA11.x%28v8.9.3%29.sh
bash cudnn-CUDA11.x\(v8.9.3\).sh 
重启生效

reboot
nvcc -V

装pytorch(cu113即可,cuda114向下兼容)

pip install torch==1.12.0+cu113 torchvision==0.13.0+cu113 torchaudio==0.12.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html
python

import torch

torch.__version__

VSCode连接

用户名@ip地址 root@127.xx.xx.xxx 不用写端口号

继续/跳过/不再显示

输入密码

http://www.lryc.cn/news/242753.html

相关文章:

  • 使用 STM32F7 和 TensorFlow Lite 开发低功耗人脸识别设备
  • 【wireshark】基础学习
  • 使用Java连接Hbase
  • OCR是什么意思,有哪些好用的OCR识别软件?
  • Springmvc实现增删改差
  • CentOS 7 使用cJSON 库
  • Linux——使用kill结束进程并恢复进程
  • 【Linux虚拟内存的配置】
  • 基于C#实现外排序
  • HTML CSS登录网页设计
  • dos 命令 判断路径中包含某字符并移动文件
  • electron+vue3全家桶+vite项目搭建【26】electron本地安装Vue Devtool插件,安装浏览器扩展
  • Modbus TCP
  • 基于人工兔算法优化概率神经网络PNN的分类预测 - 附代码
  • 微服务学习(十二):安装Minio
  • SpringCloud实用-OpenFeign整合okHttp
  • Python 异步套接字编程
  • 今年的校招薪资真的让人咋舌!
  • debian 设置系统默认以命令行方式启动,关闭x windows
  • AMEYA360:蔡司新能源汽车解决方案驱动产业未来
  • C#面试问题整理
  • 微信小程序 基于Android的共享付费自习室座位选座系统uniAPP
  • Java中类的类型判断技巧以及没有无参构造函数时的应对策略。isInstance()方法解析
  • 基于微信小程序的员工宿舍报修系统
  • 机器学习探索计划——KNN算法流程的简易了解
  • ES6之class类
  • 17 redis集群方案
  • [数据结构]—栈和队列
  • 【GridSearch】 简单实现并记录运行效果
  • SecureCRT出现Key exchange failed.No compatible key exchange method. 错误解决方法