ubuntu 20.04 装机配置

ubuntu 20.04 装机配置

ubuntu 20.04 配置pip 源

1.安装pip

apt-get install python-pip python-dev build-essential

pip install --upgrade pip

pip install --upgrade virtualenv

sudo apt install net-tools

apt-get update -y
apt-get install -y iputils-ping

2.创建pip.config 文件

mkdir ~/.pip

vim ~/.pip/pip.conf

3.添加pip源

    # 阿里源
    [global]
    index-url = http://mirrors.aliyun.com/pypi/simple/
     
    [install]
    trusted-host=mirrors.aliyun.com


   # nexus3源
   [global]
   index-url = https://nexus3.in/repository/pypi-aliyun/simple/

   [install]
   trusted-host=nexus3.in

https://hongbb.top/2019/01/22/UbuntuToDo/

https://sspai.com/post/60411

https://zhuanlan.zhihu.com/p/139305626

https://blog.diqigan.cn/posts/ubuntu-2004-optimization.html

https://zhuanlan.zhihu.com/p/71833109

https://yyixx.com/docs/os/ubuntu18_init/

posted @ 2021-05-13 14:40  michaelchengjl  阅读(1623)  评论(0编辑  收藏  举报