环境pip 安装 ipython 时出错



尝试在我的Windows上安装ipython时,我不断收到此错误。 pip为Pandas和其他库工作。

ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\Users\Me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\jedi\third_party\typeshed\third_party\2and3\requests\packages\urllib3\packages\ssl_match_hostname\_implementation.pyi'
Traceback (most recent call last):
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.7_3.7.1473.0_x64__qbz5n2kfra8p0libsite-packagespip_internalcommandsinstall.py", line 407, in run
use_user_site=options.use_user_site,
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.7_3.7.1473.0_x64__qbz5n2kfra8p0libsite-packagespip_internalreq__init__.py", line 58, in install_given_reqs
**kwargs
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.7_3.7.1473.0_x64__qbz5n2kfra8p0libsite-packagespip_internalreqreq_install.py", line 928, in install
use_user_site=use_user_site, pycompile=pycompile,
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.7_3.7.1473.0_x64__qbz5n2kfra8p0libsite-packagespip_internalreqreq_install.py", line 461, in move_wheel_files
warn_script_location=warn_script_location,
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.7_3.7.1473.0_x64__qbz5n2kfra8p0libsite-packagespip_internalwheel.py", line 432, in move_wheel_files
clobber(source, lib_dir, True)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.7_3.7.1473.0_x64__qbz5n2kfra8p0libsite-packagespip_internalwheel.py", line 410, in clobber
shutil.copyfile(srcfile, destfile)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.7_3.7.1473.0_x64__qbz5n2kfra8p0libshutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\My User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\jedi\third_party\typeshed\third_party\2and3\requests\packages\urllib3\packages\ssl_match_hostname\_implementation.pyi'```

我有类似的问题。我将注册表项"Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled"更改为 1。

我遇到了同样的问题。对我来说,文件路径太长了。重命名内容(例如PythonSoftwareFoundation.Python.3.7_3.7.1473.0_x64__qbz5n2kfra8p0内容(以缩短路径。

Windows Python 安装程序允许您在安装或升级时更改最大路径长度,这将解决问题。 您还可以查找更改最大路径长度 Win 10 以了解如何更改注册表。

相关内容

  • 没有找到相关文章

最新更新