1. 程式人生 > >python 3.7.2 安裝 pycurl 遇到的坑

python 3.7.2 安裝 pycurl 遇到的坑

 

python 3.7.2 安裝 pycurl,一直報如下錯誤:

Requirement 'D:\\pycurl‑7.43.1‑cp37‑cp37m‑win_amd64.whl' looks like a filename, but the file does not exist
pycurl‑7.43.1‑cp37‑cp37m‑win_amd64.whl is not a valid wheel filename.

解決方法:

1)到 https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycurl 找到對應版本,並下載到本地:

例如:python 3.7.2 我對應的版本如下圖:

2、通過 pip 安裝 下載到本地的檔案

pip install D:\pycurl-7.43.1-cp37-cp37m-win_amd64.whl

注意:install 是你下載的 pycurl(例如:我這裡就是:D:\pycurl-7.43.1-cp37-cp37m-win_amd64.whl)的本地路徑) 

 

參考:https://www.cnblogs.com/kerbside/p/9630388.html