Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory
2019-04-09 15:25
671 查看
安装pycurl出现上述问题
开始有的步骤:
1.在https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl中找到对应的pycurl版本,进行下载
2.使用cmd pip进行安装
pip install pycurl-7.43.1-cp37-cp37m-win_amd64.whl
3.出现错误:
Requirement 'pycurl-7.43.1-cp37-cp37m-win_amd64.whl' looks like a filename, but the file does not exist Processing c:\users\17548\pycurl-7.43.1-cp37-cp37m-win_amd64.whl Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\17548\\pycurl-7.43.1-cp37-cp37m-win_amd64.whl'
分析:
在上述错误描述中,没有在相应的文件目录下找到相应的whl文件,所以不能进行安装
解决:
1.将pycurl-7.43.1-cp37-cp37m-win_amd64.whl 拷贝到错误指定的文件夹下(C:\Users\17548 我的最后安装到了这个文件夹下)
2.使用
pip install pycurl-7.43.1-cp37-cp37m-win_amd64.whl
结果
C:\Users\17548>pip install pycurl-7.43.1-cp37-cp37m-win_amd64.whlProcessing c:\users\17548\pycurl-7.43.1-cp37-cp37m-win_amd64.whl Installing collected packages: pycurl Successfully installed pycurl-7.43.1
正确,安装成功!
相关文章推荐
- pip安装出现Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '
- 安装QScintilla时报错:Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:
- pip install pycurl "Error: Could not run curl-config: [Errno 2] No such file or directory"
- Python 更新pip报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
- Pip "Could not install packages due to an EnvironmentError: Missing dependencies for SOCKS support."
- 安装 pyspider ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
- python的pip10.1版本出现了安装包时的错误Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。
- windows 安装python pip Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- Apache 不能启动,出现 No such file or directory: make_sock: could not bind to port 8080 错误
- Xcode - Could not launch app - No such file or directory Error.
- Xcode - Could not launch app - No such file or directory Error
- mysql could not read contents of failed to open no such file or directory
- ubuntu14.04安装pycurl报错: __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
- Xcode - Could not launch app - No such file or directory Error.
- Could not run curl-config: [Errno 2] No such file or directory
- Xcode 错误- Could not launch app - No such file or directory Error.
- psql: could not connect to server: No such file or directory&&PGHOST
- Could not run curl-config: [Errno 2] No such file or directory
- error: could not lock config file E:/git/Git/%USERPROFILE%/.gitconfig: No such file or directory