1. 程式人生 > >linux虛擬機安裝python 及 配置環境變量

linux虛擬機安裝python 及 配置環境變量

port source linux wget details comm install hive 文件中

下載python安裝包 (wget -P filepath 下載鏈接)

linux下安裝anaconda教程,並添加清華鏡像

sh Anaconda3-5.3.1-Linux-x86_64.sh  (一律yes就好了)
vim /etc/profile  (文件中添加   export PATH=/root/anaconda3/bin:$PATH)
source  /etc/profile  (或  . /etc/profile)

報錯:bunzip2: command not found 解決:yum install -y bzip2

pip install --upgrade pip #更新pip

pip install --default-timeout=1000 --no-cache-dir -r requirements.txt #pip安裝超時解決方法

linux虛擬機安裝python 及 配置環境變量