您的位置:首页 > 产品设计 > UI/UE

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

正确,安装成功!

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐