解决Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:'x.pyc'
2020-03-29 18:43
3507 查看
windows系统下使用pip安装库时可能会遇到以下问题:
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\xxx\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\tensorboard\\_vendor\\tensorflow_serving\\sources\\storage_path\\__pycache__\\file_system_storage_path_source_pb2.cpython-37.pyc'
遇到这个问题的原因大概是由于系统不支持长路径,解决方法是只需要在注册表中修改
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled值为1即可
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- pip安装出现Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '
- Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory
- Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
- Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory
- Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: '/usr/local/lib/python3.5/di
- 安装QScintilla时报错:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:
- Could not install packages due to an EnvironmentError: [Errno 13] 权限不够: '/usr/local/lib/python2.7/di
- pip install pycurl "Error: Could not run curl-config: [Errno 2] No such file or directory"
- Could not install packages due to an EnvironmentError: [Erroe 13]
- VScode配置Python环境更新pip报错——ERROR: Could not install packages due to an EnvironmentError: [WinError 5]
- Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
- Could not install packages due to an EnvironmentError: [WinError 5]
- 安装 pyspider ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
- 问题解决:psql: could not connect to server: No such file or directory Is the server running
- python的pip10.1版本出现了安装包时的错误Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- Pip "Could not install packages due to an EnvironmentError: Missing dependencies for SOCKS support."
- Python 更新pip报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
- windows 安装python pip Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- Could not install packages due to an EnvironmentError: Missing dependencies for SOCKs support
- Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。