标签:dev www 表示 conf source src org pip ftp
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel -y
yum install xz -y
wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
tar xf Python-3.6.3.tar.xz -C /usr/local/src/
cd /usr/local/src/Python-3.6.3/
./configure --prefix=/usr/local/python3
yum install gcc-c++ gcc -y #安装编译所需依赖
make -j 4 && make install
ln -s /usr/local/python3/bin/python3.6 /usr/local/bin/python3
mv /usr/bin/python /usr/bin/python_bak
ln -s /usr/local/python3/bin/python3 /usr/bin/python
python -V
Python-3.6.3
pip install --upgrade pip
注:--no-check-certificate 表示安装时“不检查证书”,不加上可能无法安装。
pip install requests
pip install paramiko
pip install pymysql
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-5.0.1-Linux-x86_64.sh
sh Anaconda3-5.0.1-Linux-x86_64.sh
后面一直选yes就行了,最后执行
加入 export PATH=/root/anaconda3/bin:$PATH
source ~/.bashrc
输入conda list 就可以把所有安装的库文件都列出来
标签:dev www 表示 conf source src org pip ftp
原文地址:https://www.cnblogs.com/xinfang520/p/11178099.html