尝试使用Pyinstaller时出错。在做了一些研究后,我认为错误是由最新版本的setuptools(19.3)中的错误引起的。修复程序似乎降级为setuptools版本19.2。我的问题是降级本身。我的问题是如何在Ubuntu 15.04中降级安装工具?
答案 0 :(得分:6)
只需使用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