安装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.whl
Processing c:\users\17548\pycurl-7.43.1-cp37-cp37m-win_amd64.whl
Installing collected packages: pycurl
Successfully installed pycurl-7.43.1
正确,安装成功!