ubuntu系统安装

linux系统安装学习过程

Ubuntu镜像更改:
阿里云镜像源:http://mirrors.aliyun.com/

安装向日葵

安装Anaconda
https://blog.csdn.net/qq_15192373/article/details/81091098
https://blog.csdn.net/qq_39856931/article/details/109737569

安装驱动 495
https://blog.csdn.net/qq_40196164/article/details/84586273

安装GCC 7.5

安装CUDA version11.5
https://www.linuxidc.com/Linux/2019-02/157168.htm
https://blog.csdn.net/zhiman_zhong/article/details/91491780
https://developer.nvidia.com/cuda-11-5-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=18.04&target_type=deb_local
在这里插入图片描述
安装谷歌浏览器
https://eli-coin.blog.csdn.net/article/details/116882522?spm=1001.2101.3001.6650.5&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-5.pc_relevant_paycolumn_v3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-5.pc_relevant_paycolumn_v3&utm_relevant_index=10

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

配置环境

sudo gedit ~/.bashrc

会弹出一个可以写的配置文件,在末尾把以下配置写入并保存。

export PATH=/usr/local/cuda-11.5/bin${PATH:+:$PATH}}      #注意,根据自己的版本,修改cuda
export LD_LIBRARY_PATH=/usr/local/cuda-11.5/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 
#注意,根据自己的版本,修改cuda

最后执行

source ~/.bashrc
nvcc
nvcc-v

在这里插入图片描述
到这里,cuda彻底安装完成。

谷歌浏览器打不开

nohup sslocal -c ss.json &

ps -aux|grep sslocal

deb方式安装cudnn
https://www.bbsmax.com/A/nAJv8qG8dr/
在这里插入图片描述
安装Pycharm
https://blog.csdn.net/qq_34099967/article/details/87869198

淘宝买一个linux系统的破解版,然后安装。

./pycharm.sh   #打开pycharm

安装torch

cuda踩坑记录:

在不知名csdn上跟着添加了一个镜像准备下载torch快一些,然后出现报错
在这里插入图片描述
解决:https://blog.csdn.net/qq_22498427/article/details/107792922

选择了离线下载:
https://download.pytorch.org/whl/torch_stable.html

自己电脑配置:python3.6;cuda11.5;
使用pip install torch-1.10.0+cu113-cp36-cp36m-linux_x86_64.whl和另一个安装

最后测试,成功!

python
>>> import torch
>>> import torchvision
>>> torch.cuda.is_available()

在这里插入图片描述

Linux系统常用镜像源

阿里云开源镜像:http://mirrors.aliyun.com/

搜狐开源镜像:http://mirrors.sohu.com/

网易开源镜像:http://mirrors.163.com/

中科大开源镜像:http://mirrors.aliyun.com/

清华大学开源镜像:https://mirror.tuna.tsinghua.edu.cn/

浙江大学开源镜像:http://mirrors.zju.edu.cn/

华中科技大学开源镜像:http://mirror.hust.edu.cn/

南阳理工学院开源镜像:http://mirror.nyist.edu.cn/

中国电信天翼云开源镜像:http://mirrors.ctyun.cn/

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值