Error installing PyCurl

2024/9/27 21:19:11

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

running installrunning buildrunning build_pyrunning build_extbuilding 'pycurl' extensiongcc-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.osrc/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 installedInstalled assemblers are:/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386src/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 pipecompilation 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
Answer

I got it working using this

sudo env ARCHFLAGS="-arch x86_64" pip install pycurl
https://en.xdnf.cn/q/71411.html

Related Q&A

Serializing objects containing django querysets

Django provides tools to serialize querysets (django.core.serializers), but what about serializing querysets living inside other objects (like dictionaries)?I want to serialize the following dictionar…

How do I list my scheduled queries via the Python google client API?

I have set up my service account and I can run queries on bigQuery using client.query(). I could just write all my scheduled queries into this new client.query() format but I already have many schedule…

What does conda env do under the hood?

After searching and not finding, I must ask here:How does conda env work under the hood, meaning, how does anaconda handle environments?To clarify, I would like an answer or a reference to questions l…

Numpy array larger than RAM: write to disk or out-of-core solution?

I have the following workflow, whereby I append data to an empty pandas Series object. (This empty array could also be a NumPy array, or even a basic list.)in_memory_array = pd.Series([])for df in list…

Pandas DataFrame styler - How to style pandas dataframe as excel table?

How to style the pandas dataframe as an excel table (alternate row colour)? Sample style:Sample data: import pandas as pd import seaborn as snsdf = sns.load_dataset("tips")

Remove namespace with xmltodict in Python

xmltodict converts XML to a Python dictionary. It supports namespaces. I can follow the example on the homepage and successfully remove a namespace. However, I cannot remove the namespace from my XM…

Groupby count only when a certain value is present in one of the column in pandas

I have a dataframe similar to the below mentioned database:+------------+-----+--------+| time | id | status |+------------+-----+--------+| 1451606400 | id1 | Yes || 1451606400 | id1 | Yes …

how to save tensorflow model to pickle file

I want to save a Tensorflow model and then later use it for deployment purposes. I dont want to use model.save() to save it because my purpose is to somehow pickle it and use it in a different system w…

PySide2 Qt3D mesh does not show up

Im diving into Qt3D framework and have decided to replicate a simplified version of this c++ exampleUnfortunately, I dont see a torus mesh on application start. Ive created all required entities and e…

Unable to import module lambda_function: No module named psycopg2._psycopg aws lambda function

I have installed the psycopg2 with this command in my package folder : pip install --target ./package psycopg2 # Or pip install -t ./package psycopg2now psycopg2 module is in my package and I have crea…