安装 PyCurl 时出错

发布于 2024-11-16 10:05:39 字数 1772 浏览 0 评论 0原文

我尝试通过 pip 安装 pycurl 。它不起作用,而是给了我这个错误。

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

I tried installing pycurl via pip. it didn't work and instead it gives me this error.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

意中人 2024-11-23 10:05:40

我用这个让它工作

sudo env ARCHFLAGS="-arch x86_64" pip install pycurl

I got it working using this

sudo env ARCHFLAGS="-arch x86_64" pip install pycurl
極樂鬼 2024-11-23 10:05:40

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

lnx#> apt-get search pycurl

安装:

lnx#> sudo apt-get install python-pycurl

如果在 linux 上使用 yum:

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,请从 此处 获取 pycurl

if you are on linux with apt-get:

lnx#> apt-get search pycurl

To install:

lnx#> sudo apt-get install python-pycurl

if on linux with yum:

lnx#> yum search pycurl  
I get this on my comp:  
python-pycurl.x86_64 : A Python interface to libcurl

To install i've did:

lnx#> sudo yum install python-pycurl

Another alternative, is to use easy_install:

yum, or apt-get, install setuptools.


If you're using Holly Windows, then get pycurl from HERE

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文