安装pycrypro过程
安装pycrypto 报错:查看是否已安装python-dev,如果没有则先安装
参考 https://www.cnblogs.com/zhaijiahui/p/10940476.html
psutil:
如果系统已安装psutil ,但是 psutil.net_if_addrs 执行报错:AttributeError: 'ModuleWrapper' object has no attribute 'net_if_addrs'
原因:psutil版本过低
需升级版本至3.0.0 以上,
报错:fatal error: Python.h: No such file or directory
解决: yum install python-devel
报错:ImportError: 'module' object has no attribute 'check_specifier'
解决:pip install --upgrade setuptools==30.1.0
报错:ERROR: Cannot uninstall 'psutil'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall
解决:pip install psutil==5.7.0 --ignore-installed
如果在升级过程中仍然报错,建议使用虚拟隔离环境
virtualenv -p /usr/bin/python2.7 virtual_venv
安装request 报错:
ImportError: No module named 'requests.packages.urllib3'
措施:
pip install --upgrade --force-reinstall 'requests==2.6.0' urllib3