pip安装出现Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '
2019-02-17 21:47
7741 查看
版权声明:本文为博主原创文章,未经博主允许不得转载。如有问题,欢迎指正。 https://blog.csdn.net/myourdream2/article/details/87560092
问题描述
pip安装库或者更新pip版本时出现如下问题:
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\\users\\××××\\appdata\\roaming\\python\\python36\\site-packages\\pip-19.0.1.dist-info\\METADATA'
问题原因
在’c:\users\××××\appdata\roaming\python\python36\site-packages\pip-19.0.1.dist-info\路径下没找到METADATA文件
解决办法
- 找到’c:\users\××××\appdata\roaming\python\python36\site-packages\pip-19.0.1.dist-info\'路径,
- 发现该路径下还有一个文件夹pip-19.0.1.dist-info,而在第二个pip-19.0.1.dist-info文件夹下有METADATA文件
- 将第二个pip-19.0.1.dist-info文件夹下的METADATA文件拷贝到第一个pip-19.0.1.dist-info文件夹下(最好是将第二个pip-19.0.1.dist-info文件夹下的文件都拷贝到第一个pip-19.0.1.dist-info文件夹下,因为后续发现在更新pip版本时会用到其它的文件)
- 再使用pip安装库或者更新pip版本,则可以成功再使用pip安装库或者更新pip版本,则可以成功
相关文章推荐
- pip install pycurl "Error: Could not run curl-config: [Errno 2] No such file or directory"
- 安装QScintilla时报错:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:
- python的pip10.1版本出现了安装包时的错误Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- windows 安装python pip Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- 安装 pyspider ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
- 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] 拒绝访问
- 在安装mysqli的时候,出现error: ext/mysqlnd/mysql_float_to_double.h: No such file or directory
- Apache 不能启动,出现 No such file or directory: make_sock: could not bind to port 8080 错误
- Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。
- ubuntu14.04安装pycurl报错: __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
- airflow 解决安装问题 OSError: [Errno 2] No such file or directory
- airflow 解决安装问题 OSError: [Errno 2] No such file or directory
- redis源码安装出现fatal error: jemalloc/jemalloc.h: No such file or directory
- Apache启动错误:No such file or directory httpd: could not open error log file......
- mac下安装mysql-python包报unable to execute llvm-gcc-4.2: No such file or directory error: command 'llvm-gcc-4.2' failed with exit status 1解决方法
- error: could not lock config file E:/git/Git/%USERPROFILE%/.gitconfig: No such file or directory
- mysql could not read contents of failed to open no such file or directory
- python使用urllib.urlretrieve时出现“IOError:[Errno 2] No such file or directory”解决办法
- Could not launch app - No such file or directory Error