|
在安装pycurl库时遇到了这个问题:pipinstallpycurlCollectingpycurl Usingcachedpycurl-7.45.2.tar.gz(234kB) reparingmetadata(setup.py)...error error:subprocess-exited-with-error ×pythonsetup.pyegg_infodidnotrunsuccessfully. │exitcode:10 ╰─>[1linesofoutput]  leasespecify--curl-dir=/path/to/built/libcurl [endofoutput] note:Thiserrororiginatesfromasubprocess,andislikelynotaproblemwithpip.error:metadata-generation-failed×Encounterederrorwhilegeneratingpackagemetadata.╰─>Seeaboveforoutput.note:Thisisanissuewiththepackagementionedabove,notpip.hint:Seeabovefor details. 在搜索之后猜测是不是版本不匹配问题,先升级了pip包:pipinstall--upgradepippipinstall--upgradesetuptoolspipinstallez_setup再重新pip install pycurl还是不行,又尝试了以下命令:pipinstallpycurl==7.43.0.5-i"https://mirrors.bfsu.edu.cn/pypi/web/simple/"这次可以了,成功安装pycurl库之后运行结果是这样的:Lookinginindexes:https://mirrors.bfsu.edu.cn/pypi/web/simple/Collectingpycurl==7.43.0.5Downloadinghttps://mirrors.bfsu.edu.cn/pypi/web/packages/b9/21/7b0db498334b552094dc72960fb2e528699952c953652b585f0b3dd88c79/pycurl-7.43.0.5-cp37-cp37m-win_amd64.whl(1.7MB)━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━1.7/1.7MB504.6kB/seta0:00:00Installingcollectedpackages:pycurlSuccessfullyinstalledpycurl-7.43.0.5
|
|