ubuntu conda pip 环境配置 备忘

记录一下不想每次都百度了。
就按照安装系统的顺序开始吧:

1. Ubuntu系统循环登录问题

一般是显卡驱动问题,重装就好了。
在循环登录界面进入tty命令行模式,然后:

sudo apt install nvidia-driver-440/或者其他版本

然后重启:

reboot

如果没有网络连接,可以使用USB链接手机,在手机端打开USB网络共享即可。

如果不管用的话,参考链接:https://www.cnblogs.com/booturbo/archive/2020/11/12/13967033.html

2. 系统软件安装顺序:

  1. 进入Software&update 换国内源;

  2. 进入software center 下载软件:
    1. Pycharm
    2. Clion
    3. wps

  3. 打开火狐下载chrome;

  4. 登录学校云盘下载qv2ray2.7, v2ray core 4.4, anaconda , cuda

  5. touch qv2ray.desktop ubuntu app.desktop

  6. 安装python3

    sudo apt install python3
    sudo ln -s /usr/bin/python3 /usr/bin/python
    
  7. 登录miyun.fun

  8. 同步chrome书签

  9. 配置开机挂载硬盘: 点击这里

  10. 常用工具安装:

    sudo apt install axel htop tilda 
    sudo snap install mathpix-snipping-tool
    
  11. gnome tweaks

  12. 搜狗输入法

  13. 安装xelatex + texstudio编辑环境:
    https://blog.csdn.net/qq_41814939/article/details/82288145

    可能需要安装系统字体:

    • Download the font file:
      https://github.com/dolbydu/font
    • 安装字体管理软件:
      sudo apt install font-manager
      
    • open the font manager and install the downloaded fonts.
  14. Pip 全局配置源

    pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/   
    

    可选源:

    (1)阿里云 https://mirrors.aliyun.com/pypi/simple/   
    (2)豆瓣 https://pypi.douban.com/simple/   
    (3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
    (4)中国科学技术大学 https://pypi.mirrors.ustc.edu.cn/simple/
    (5)华中科技大学https://pypi.hustunique.com/
    

    Pip 临时指定源

    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas
    
  15. conda全局配置源
    中科大源

    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
    conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
    conda config --set show_channel_urls yes 
    

    清华源

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ 
    conda config --set show_channel_urls yes
    

    上海交通大学源

    conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/
    conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/
    conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud/conda-forge/
    conda config --set show_channel_urls yes
    

    恢复默认源

    conda config --remove-key channels
    

pytorch各个版本镜像下载地址:

torch-cuda9.2 镜像地址
torch-cuda10.0镜像地址
同理修改网址到对应的cuda版本可以链接到对应镜像地址.

下载好之后,使用pip进行安装:

pip install XXXX.whl

ubuntu gcc/g++ 版本管理:

链接
博客链接
其他百度的是什么鬼


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值