Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/328.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
降级Python设置工具_Python_Setuptools_Pyinstaller - Fatal编程技术网

降级Python设置工具

降级Python设置工具,python,setuptools,pyinstaller,Python,Setuptools,Pyinstaller,尝试使用Pyinstaller时出错。在做了一些研究之后,我相信这个错误是由最新版本的setuptools(19.3)中的一个bug引起的。修复程序似乎正在降级到setuptools版本19.2。我的问题是降级本身。我的问题是如何在Ubuntu 15.04中降级setuptools 只需使用pip指定版本即可: pip install setuptools==19.2 如果您在全球范围内安装,显然需要sudo ~$ sudo pip install setuptools==19.2 Coll

尝试使用Pyinstaller时出错。在做了一些研究之后,我相信这个错误是由最新版本的setuptools(19.3)中的一个bug引起的。修复程序似乎正在降级到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

谢谢@Padriac Cunningham