Ubuntu 16.04 安装 python3.7 && 修复安装后无法打开 Terminal 的问题
安装 python3.7 下载安装包 wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz 解压 tar -xvzf Python-3.7.1.tgz 切换路径 cd Python-3.7.1 安装 ./configure # 默认安装到 /usr/local 目录下 ./configure --enable-optimizations --prefix=/opt/python3.7 # 或者指定安装路径 /opt/python3.7 make sudo make install 将 Python3 的软链接指向 Python3.7 sudo rm /usr/bin/python3 sudo rm /usr/bin/pip3 sudo ln -s /opt/python3.7/bin/python3.7 /user/bin/python3 sudo ln -s /opt/python3.7/bin/pip3 /user/bin/pip3 注: 默认路径安装(./configure) 库文件路径 /usr/local/lib 配置文件路径 /usr/local/include 资源文件路径 /usr/local/share 指定路径安装(./configure --enable-optimizations -