亚欧色一区w666天堂,色情一区二区三区免费看,少妇特黄A片一区二区三区,亚洲人成网站999久久久综合,国产av熟女一区二区三区

  • 發布文章
  • 消息中心
點贊
收藏
評論
分享
原創

Ubuntu安裝Python

2023-06-13 09:28:54
26
0

Ubuntu安裝Python的方式與其他Linux系統(tong)有所不同,在這里介紹一下。

配置環境(jing)

切(qie)換的國內源:

sudo gedit /etc/apt/sources.list

將原有(you)的源注釋(shi)掉,添加如下內容:

#清華源(yuan)
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

更新apt-get

sudo apt-get update

安裝build-essential

sudo apt-get install build-essential

安裝Python

安(an)裝Python3.8:

sudo apt-get install python3.8
sudo apt install python3-pip

查(cha)看是否成功(gong):

查看Python是否安裝成功:

python3 --version

輸出版本(ben)號Python 3.8.5即表示安裝成(cheng)功。

 

Ubuntu更換源

臨時更換(huan)

使用阿里源:

pip install *** -i //mirrors.aliyun.com/pypi/simple/ 

永久更(geng)換

新建.pip隱藏(zang)文件夾:

cd ~ 
mkdir .pip

新建pip.conf文(wen)件(jian):

cd .pip
touch pip.conf

用vim編輯pip.conf文件

vim pip.conf 

內容如下:

[global]
index-url = //mirrors.aliyun.com/pypi/simple
[install]
trusted-host=mirrors.aliyun.com

 

 

 

 

0條評論
0 / 1000
代碼的路
100文章數(shu)
1粉絲數
代碼的路
100 文章 | 1 粉絲
代碼的路
100文章數
1粉(fen)絲數(shu)
代碼的路
100 文章 | 1 粉(fen)絲
原(yuan)創

Ubuntu安裝Python

2023-06-13 09:28:54
26
0

Ubuntu安裝Python的(de)方式與其他Linux系統有所不同,在(zai)這里介紹一下。

配置環境(jing)

切換的國內源:

sudo gedit /etc/apt/sources.list

將(jiang)原有的源注(zhu)釋(shi)掉,添(tian)加如下內(nei)容:

#清(qing)華源
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb //mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

更新apt-get

sudo apt-get update

安裝(zhuang)build-essential

sudo apt-get install build-essential

安裝Python

安裝Python3.8:

sudo apt-get install python3.8
sudo apt install python3-pip

查(cha)看是否成功:

查看Python是否(fou)安裝成功:

python3 --version

輸出版本號Python 3.8.5即表示安裝成功。

 

Ubuntu更換源

臨(lin)時(shi)更換

使(shi)用阿里源(yuan):

pip install *** -i //mirrors.aliyun.com/pypi/simple/ 

永(yong)久更(geng)換

新建.pip隱藏文件夾(jia):

cd ~ 
mkdir .pip

新建pip.conf文件:

cd .pip
touch pip.conf

用vim編(bian)輯pip.conf文件

vim pip.conf 

內容如下:

[global]
index-url = //mirrors.aliyun.com/pypi/simple
[install]
trusted-host=mirrors.aliyun.com

 

 

 

 

文章來自個人專欄
文章 | 訂(ding)閱
0條評論
0 / 1000
請輸入你的評論
0
0