尝试使用Pyinstaller时出现错误。经过研究后,我相信该错误是由最新版本的setuptools(19.3)中的错误引起的。该修复程序似乎已降级到setuptools版本19.2。我的问题是降级本身。我的问题是在Ubuntu 15.04中如何降级setuptools?
最佳答案
只需使用pip
指定版本:
pip install setuptools==19.2
如果要全局安装,则显然需要sudo。
~$ sudo pip install setuptools==19.2
Collecting setuptools==19.2
Downloading setuptools-19.2-py2.py3-none-any.whl (463kB)
100% |████████████████████████████████| 466kB 486kB/s
Installing collected packages: setuptools
Found existing installation: setuptools 19.1
Uninstalling setuptools-19.1:
Successfully uninstalled setuptools-19.1
Successfully installed setuptools-19.2
~$ sudo pip install setuptools==19.1
Collecting setuptools==19.1
Downloading setuptools-19.1-py2.py3-none-any.whl (463kB)
100% |████████████████████████████████| 466kB 377kB/s
Installing collected packages: setuptools
Found existing installation: setuptools 19.2
Uninstalling setuptools-19.2:
Successfully uninstalled setuptools-19.2
Successfully installed setuptools-19.1
关于python - 降级Python Setuptools,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/35255339/