![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
iwi_ac
爱生活 爱思考 爱编程 希望和志同道合的朋友一起交流!
ACmer Linuxer
展开
-
python AttributeError: 'module' object has no attribute 'dumps'解决办法
最近在编写Python脚本过程中遇到一个问题比较奇怪:Python脚本完全正常没问题,但执行总报错"AttributeError: 'module' object has no attribute'xxx'"。这其实是.pyc文件存在问题。 问题定位: 查看import库的源文件,发现源文件存在且没有错误,同时存在源文件的.pyc文件 问题解决方法: 1.原创 2016-09-01 20:28:03 · 6912 阅读 · 0 评论 -
pip不是内部命令问题
然后就去看了看,site-packages的pip和pip-1.2.1-py3.6.egg-info中,都没有pip.py或pip.exe之类的。 并且,此路径也没加到PATH中去,所以没法运行,也是正常的。 参考其截图,去添加对应的环境变量: C:\Program Files (x86)\Python\Python36-32\Scripts 到PATH中去:转载 2017-04-16 20:19:58 · 1550 阅读 · 0 评论 -
python升级导致yum命令无法使用的解决办法(修改版)
1、报错信息如下: [plain]view plain copy print? [root@develop bin]# yum [root@develop local]# yum -y install prce There was a problem importing one of the Python modules require转载 2017-08-02 23:08:08 · 1294 阅读 · 0 评论