ubuntu Python 升级
2024-10-21 07:34:58
安装时ubuntu提示:
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one
supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March
2019 (cf PEP 429).
所以我们要升级一下版本:
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
xz -d Python-3.7.3.tar.xz
tar -xvf Python-3.7.3.tar
cd Python-3.7.3
./configure --with-ssl
sudo make
sudo make install
如果不成功,安装依赖再试一下:
sudo apt-get install -y zlib*
接着修改软连接
sudo rm -rf /usr/bin/python3
sudo rm -rf /usr/bin/pip3
sudo ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
sudo ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3
重启即可
最新文章
- php中实现的一个curl批处理的实例
- centos系统编译安装nginx+php环境另加独立mysql教程
- mysql支持IOS的Emoji表情
- Parallels Destop软件配置
- 如何在linux sqlplus 下实现方向健和回退键操作而避免乱码
- 初识React,Virutal DOM, State以及生命周期
- Android目标大纲
- feedback 是什么意思
- Altium 9中正确的差分对走线方法
- scrapy中运行爬虫时出现twisted critical unhandled error错误
- R语言结合概率统计的体系分析---数字特征
- python 三级联动
- Attribute在.NET编程中的应用(三)
- logistic分类
- R语言的精度和时间效率比较(简单版)
- Spark Multilayer perceptron classifier (MLPC)多层感知器分类器
- js读取后端写入cookie出现乱码
- POJ1157 LITTLE SHOP OF FLOWERS DP
- Redis数据类型(下)
- BZOJ4571:[SCOI2016]美味——题解