安装时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

重启即可

最新文章

  1. php中实现的一个curl批处理的实例
  2. centos系统编译安装nginx+php环境另加独立mysql教程
  3. mysql支持IOS的Emoji表情
  4. Parallels Destop软件配置
  5. 如何在linux sqlplus 下实现方向健和回退键操作而避免乱码
  6. 初识React,Virutal DOM, State以及生命周期
  7. Android目标大纲
  8. feedback 是什么意思
  9. Altium 9中正确的差分对走线方法
  10. scrapy中运行爬虫时出现twisted critical unhandled error错误
  11. R语言结合概率统计的体系分析---数字特征
  12. python 三级联动
  13. Attribute在.NET编程中的应用(三)
  14. logistic分类
  15. R语言的精度和时间效率比较(简单版)
  16. Spark Multilayer perceptron classifier (MLPC)多层感知器分类器
  17. js读取后端写入cookie出现乱码
  18. POJ1157 LITTLE SHOP OF FLOWERS DP
  19. Redis数据类型(下)
  20. BZOJ4571:[SCOI2016]美味——题解

热门文章

  1. POJ 1502:MPI Maelstrom Dijkstra模板题
  2. Windows下Nodejs的开发环境搭建
  3. Ubuntu Hadoop使用过程中的一些技巧1
  4. Docker安装 - CentOS7环境
  5. ACwing算法基础课听课笔记(第一章,基础算法一)(二分)
  6. h5-sessionStorage储存的使用
  7. Ubuntu系统的软件源更换
  8. 2019牛客网暑假多校训练第四场 K —number
  9. Java开学测试感想
  10. idHttpServer接收类型