首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装PyCurl时出错

安装PyCurl时出错
EN

Stack Overflow用户
提问于 2011-06-20 00:52:39
回答 2查看 5.5K关注 0票数 6

我尝试通过pip安装pycurl。它没有工作,相反,它给了我这个错误。

代码语言:javascript
复制
running install

running build

running build_py

running build_ext

building 'pycurl' extension

gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv
-Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc
-arch x86_64 -pipe -DHAVE_CURL_SSL=1 -I/System/Library/Frameworks/
Python.framework/Versions/2.6/include/python2.6 -c src/pycurl.c -o
build/temp.macosx-10.6-universal-2.6/src/pycurl.o

src/pycurl.c:85:4: warning: #warning "libcurl was compiled with SSL
support, but configure could not determine which " "library was used;
thus no SSL crypto locking callbacks will be set, which may " "cause
random crashes on SSL requests"

/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/
../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/
ppc/as) for architecture ppc not installed

Installed assemblers are:

/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64

/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386

src/pycurl.c:85:4: warning: #warning "libcurl was compiled with SSL
support, but configure could not determine which " "library was used;
thus no SSL crypto locking callbacks will be set, which may " "cause
random crashes on SSL requests"

src/pycurl.c:3906: fatal error: error writing to -: Broken pipe

compilation terminated.

src/pycurl.c:85:4: warning: #warning "libcurl was compiled with SSL
support, but configure could not determine which " "library was used;
thus no SSL crypto locking callbacks will be set, which may " "cause
random crashes on SSL requests"

lipo: can't open input file: /var/tmp//ccspAJOg.out (No such file or
directory)

error: command 'gcc-4.2' failed with exit status 1
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-06-20 01:29:24

我用这个让它工作了

代码语言:javascript
复制
sudo env ARCHFLAGS="-arch x86_64" pip install pycurl
票数 11
EN

Stack Overflow用户

发布于 2013-10-31 13:17:37

如果您在linux上使用apt-get:

代码语言:javascript
复制
lnx#> apt-get search pycurl

要安装:

代码语言:javascript
复制
lnx#> sudo apt-get install python-pycurl

如果在带有yum的linux上:

代码语言:javascript
复制
lnx#> yum search pycurl  
I get this on my comp:  
python-pycurl.x86_64 : A Python interface to libcurl

为了安装我已经做到了:

lnx#> sudo yum install python-pycurl

另一种选择是使用easy_install:

yum或apt-get,安装setuptools。

如果你使用的是Holly Windows,那么可以从HERE获取pycurl

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6403757

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档