iT邦幫忙

0

pycurl無法安裝

  • 分享至 

  • xImage

不好意思,想請問一個很基本的問題
因為需要pycurl這個套件(https://pypi.org/project/pycurl/),但是使用pip安裝的時候,終端機呈現
「failed with error code 1 in/private/var/folders/m8/2w8qfqd52ygbxbdsc7t473m80000gn/T/pip-install-co1d7eq7/pycurl/」這一段
想請問是怎麼解決這個問題

看更多先前的討論...收起先前的討論...
youarefat iT邦新手 5 級 ‧ 2018-12-21 15:41:47 檢舉
錯誤訊息只有這樣嗎
ver2118 iT邦新手 5 級 ‧ 2018-12-21 22:02:45 檢舉
是的
ayu iT邦好手 2 級 ‧ 2018-12-22 14:46:57 檢舉
錯誤訊息不完整吧?
ver2118 iT邦新手 5 級 ‧ 2018-12-23 14:47:41 檢舉
Collecting pycurl
Using cached https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz
Complete output from command python setup.py egg_info:
Using curl-config (libcurl 7.54.0)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/m8/2w8qfqd52ygbxbdsc7t473m80000gn/T/pip-install-eicd42zn/pycurl/setup.py", line 913, in <module>
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
File "/private/var/folders/m8/2w8qfqd52ygbxbdsc7t473m80000gn/T/pip-install-eicd42zn/pycurl/setup.py", line 582, in get_extension
ext_config = ExtensionConfiguration(argv)
File "/private/var/folders/m8/2w8qfqd52ygbxbdsc7t473m80000gn/T/pip-install-eicd42zn/pycurl/setup.py", line 99, in __init__
self.configure()
File "/private/var/folders/m8/2w8qfqd52ygbxbdsc7t473m80000gn/T/pip-install-eicd42zn/pycurl/setup.py", line 316, in configure_unix
specify the SSL backend manually.''')
__main__.ConfigurationError: Curl is configured to use SSL, but we have not been able to determine which SSL backend it is using. Please see PycURL documentation for how to specify the SSL backend manually.

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/m8/2w8qfqd52ygbxbdsc7t473m80000gn/T/pip-install-eicd42zn/pycurl/
jiangtingxuande-MacBook-Pro:~ tinghsaunchiang$
ver2118 iT邦新手 5 級 ‧ 2018-12-23 14:48:07 檢舉
這是我輸入pip install pycurl後出現的錯誤訊息..
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
逮丸逮丸
iT邦大師 1 級 ‧ 2018-12-24 08:14:46

很典型的找不到 openssl-devel 的問題,
但你的環境卻又是 Mac 底下跑的,
可以參考這些在 Mac 環境下編 pycurl 碰到跟你一樣的問題的解決經驗談:

MacOS解决pycurl安装的坑

Mac下安装pycurl填坑记录

我要發表回答

立即登入回答