1、安装3.7
Windows:https://www.python.org/downloads/release/python-370/
windows:https://www.jetbrains.com/pycharm/download/#section=windows python编译器工具,方便学习
linux:https://www.python.org/downloads/source/ 编译安装
打开WEB浏览器访问 https://www.python.org/downloads/source/下载及解压压缩包 Python-3.x.x.tgz,3.x.x 为你下载的对应版本号。
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc* make -y
wget https://www.python.org/ftp/python/3.6.10/Python-3.6.10.tgz
tar -zxvf Python-3.6.1.tgz
cd Python-3.6.1
./configure
make && make install
ln -s /usr/local/bin/python3 /usr/bin/python3
卸载python3
rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps 卸载pyhton3
whereis python3 |xargs rm -frv 删除所有残余文件
whereis python 查看现有安装的python
安装pip3
wget wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb
tar -zxvf pip-8.0.2.tar.gz
cd pip-8.0.2
python3 setup.py build
python3 setup.py install
卸载pip
python3 -m pip uninstall pip
网友评论