Linux 系统安装 python

Centos 7

  1. Centos 7 安装 python3 (不要卸载python2 因为yum 要用) https://phoenixnap.com/kb/how-to-install-python-3-centos-7

  2. Centos 7 安装python3 https://tecadmin.net/install-python-3-7-on-centos/

Possible Problem

  1. 如果在 python 里面 import 包的时候遇到 No module named _bz2, 可以先

  (centos) sudo yum install bzip2-devel

 然后重新 configure 和 make 已经安装好的 Python. (参考https://stackoverflow.com/questions/12806122/missing-python-bz2-module)

 

 





转载请注明出处 http://www.cnblogs.com/mashuai-191/
原文地址:https://www.cnblogs.com/mashuai-191/p/12001381.html