Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.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
setuptools无法在python 3.5中升级或降级_Python - Fatal编程技术网

setuptools无法在python 3.5中升级或降级

setuptools无法在python 3.5中升级或降级,python,Python,我正在尝试将setuptools从19.6.2升级/降级到20.9 我使用变通方法--忽略已安装的来安装新版本的setuptools 它已成功安装,但我仍然可以在python的站点包路径中找到setuptools-19.6.2-py3.5.egg文件。 我正在尝试将python脚本转换为.exe。当我试图运行.exe时,它崩溃,出现以下错误: Traceback (most recent call last): File "site-packages\PyInstaller\loader\r

我正在尝试将
setuptools
从19.6.2升级/降级到20.9

我使用变通方法
--忽略已安装的
来安装新版本的
setuptools

它已成功安装,但我仍然可以在python的
站点包
路径中找到
setuptools-19.6.2-py3.5.egg
文件。
我正在尝试将python脚本转换为
.exe
。当我试图运行
.exe
时,它崩溃,出现以下错误:

Traceback (most recent call last):
  File "site-packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py", line 11, in
 <module>
  `File "c:\anaconda3\lib\site-packages\PyInstaller\loader\pyimod03_importers.py"
, line 389, in load_module
    exec(bytecode, module.__dict__)
  File "site-packages\setuptools-19.6.2-py3.5.egg\pkg_resources\__init__.py", li
ne 75, in <module>
  File "site-packages\setuptools-19.6.2-py3.5.egg\pkg_resources\extern\__init__.
py", line 60, in load_module
ImportError: The 'packaging' package is required; normally this is bundled with
this package so if you get this warning, consult the packager of your distributi
on.
Failed to execute script pyi_rth_pkgres
回溯(最近一次呼叫最后一次):
文件“site packages\PyInstaller\loader\rthooks\pyi_rth_pkgres.py”,第11行,在
`文件“c:\anaconda3\lib\site packages\PyInstaller\loader\pyimod03\u importers.py”
,第389行,加载模块中
exec(字节码、模块、指令)
文件“site packages\setuptools-19.6.2-py3.5.egg\pkg_resources\\ uu_init__.py”,li
东北75,在
文件“site packages\setuptools-19.6.2-py3.5.egg\pkg\u resources\extern\\uuuuuu init\uuuu”。
py”,第60行,加载模块中
ImportError:需要“包装”包装;通常这是捆绑在一起的
因此,如果您收到此警告,请咨询经销商的包装商
在…上
无法执行脚本pyi_rth_pkgres
PyInstaller
仍在使用以前版本的
setuptools

如果有人遇到这个问题,请提供帮助