不要卸载linux上原装的Python2.7.5
不要卸载linux上原装的Python2.7.5
不要卸载linux上原装的Python2.7.5
误卸载了,可以在这篇博客找到解决方案----https://blog.51cto.com/welcomeweb/2132654
大概意思就是说yum命令需要依赖python2.7.5的环境
值得注意的是
1.centOS的版本要对应,精确到小版本
2.除了上面的那几个包,还要加装下面这两个包
然后yum命令就可以正常使用了。
二、关于pip无法下载Python3.5+以上的库
这个时候需要再装一个Python3.5+,装python3.7的
参考此博客:https://www.jianshu.com/p/c3fda568de4d
需要注意的点:
往下还要修改yum配置文件
还要修改一个地方
vi /usr/libexec/urlgrabber-ext-down
然后就可以了
最后编辑于2019-11-06
三.Linux引入Pandas时报错
报错信息:ModuleNotFoundError: No module named '_bz2'
可通过此博客解决--https://blog.csdn.net/u014589856/article/details/89175609
记住要对应你的python版本号,如是python3.7的则将改文件名中的-36m换成-37m即可
继续往下执行可能会出现一个warning:
UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
可参考此博客解决--https://blog.csdn.net/sangfei18829896970/article/details/97754635
最后编辑于2019-11-08