How can I install the Python library 'gevent' on Mac OS X Lion Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!pip install: Command clang failedCan't install gevent OSX 10.11Python redis-log errorHow can I safely create a nested directory in Python?How can I remove a trailing newline in Python?How to get the current time in PythonHow can I make a time delay in Python?How do I install pip on Windows?Set environment variables on Mac OS X LionMac osx LION :python cxfreeze installation error: stdarg.h: No such file or directoryHow do I install pip on macOS or OS X?QuTip installation error MacOsX 10.6.8 for PythonAzure-CLI 2.0 Install Fails on Mac
"Working on a knee"
How long can a nation maintain a technological edge over the rest of the world?
Is Bran literally the world's memory?
When speaking, how do you change your mind mid-sentence?
Israeli soda type drink
`FindRoot [ ]`::jsing: Encountered a singular Jacobian at a point...WHY
What is a good proxy for government quality?
How would it unbalance gameplay to rule that Weapon Master allows for picking a fighting style?
What is ls Largest Number Formed by only moving two sticks in 508?
What was Apollo 13's "Little Jolt" after MECO?
How would you suggest I follow up with coworkers about our deadline that's today?
Did war bonds have better investment alternatives during WWII?
What to do with someone that cheated their way though university and a PhD program?
What is /etc/mtab in Linux?
What happened to Viserion in Season 7?
false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'
What's the difference between using dependency injection with a container and using a service locator?
How to keep bees out of canned beverages?
Does Prince Arnaud cause someone holding the Princess to lose?
Why did Israel vote against lifting the American embargo on Cuba?
Was Objective-C really a hindrance to Apple software development?
What is the definining line between a helicopter and a drone a person can ride in?
Where/What are Arya's scars from?
Getting AggregateResult variables from Execute Anonymous Window
How can I install the Python library 'gevent' on Mac OS X Lion
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!pip install: Command clang failedCan't install gevent OSX 10.11Python redis-log errorHow can I safely create a nested directory in Python?How can I remove a trailing newline in Python?How to get the current time in PythonHow can I make a time delay in Python?How do I install pip on Windows?Set environment variables on Mac OS X LionMac osx LION :python cxfreeze installation error: stdarg.h: No such file or directoryHow do I install pip on macOS or OS X?QuTip installation error MacOsX 10.6.8 for PythonAzure-CLI 2.0 Install Fails on Mac
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Python library gevent
, version 0.13.6 (the current version on PyPI) will not pip install
on OS X Lion, Python 2.7 (and probably others.) It works fine on Snow Leopard.
How can I get this library installed?
Bonus points if it can be done using pip install
, rather than a manual or custom process, because then it will play nicely with automated builds.
Here is my pip install
output:
pip install gevent
Downloading/unpacking gevent
Running setup.py egg_info for package gevent
Requirement already satisfied (use --upgrade to upgrade): greenlet in ./tl_env/lib/python2.7/site-packages (from gevent)
Installing collected packages: gevent
Running setup.py install for gevent
building 'gevent.core' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.6-intel-2.7/gevent/core.o
In file included from gevent/core.c:225:
gevent/libevent.h:9:19: error: event.h: No such file or directory
gevent/libevent.h:38:20: error: evhttp.h: No such file or directory
gevent/libevent.h:39:19: error: evdns.h: No such file or directory
gevent/core.c:361: error: field ‘ev’ has incomplete type
gevent/core.c:741: warning: parameter names (without types) in function declaration
gevent/core.c: In function ‘__pyx_f_6gevent_4core___event_handler’:
gevent/core.c:1619: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:1619: error: (Each undeclared identifier is reported only once
gevent/core.c:15376: warning: assignment makes pointer from integer without a cast
[... about 1000 more lines of compiler errors...]
gevent/core.c:15385: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4http___init__’:
gevent/core.c:15559: warning: assignment makes pointer from integer without a cast
gevent/core.c: At top level:
gevent/core.c:21272: error: expected ‘)’ before ‘val’
lipo: can't figure out the architecture type of: /var/folders/s5/t94kn0p10hdgxzx9_9sprpg40000gq/T//cczk54q7.out
error: command 'gcc-4.2' failed with exit status 1
Complete output from command /Users/jacob/code/toplevel/tl_env/bin/python -c "import setuptools;__file__='/Users/jacob/code/toplevel/tl_env/build/gevent/setup.py';exec(compile(open(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/s5/t94kn0p10hdgxzx9_9sprpg40000gq/T/pip-s2hPd3-record/install-record.txt --install-headers /Users/jacob/code/toplevel/tl_env/bin/../include/site/python2.7:
running install
running build
running build_py
running build_ext
building 'gevent.core' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.6-intel-2.7/gevent/core.o
python macos osx-lion gevent
add a comment |
Python library gevent
, version 0.13.6 (the current version on PyPI) will not pip install
on OS X Lion, Python 2.7 (and probably others.) It works fine on Snow Leopard.
How can I get this library installed?
Bonus points if it can be done using pip install
, rather than a manual or custom process, because then it will play nicely with automated builds.
Here is my pip install
output:
pip install gevent
Downloading/unpacking gevent
Running setup.py egg_info for package gevent
Requirement already satisfied (use --upgrade to upgrade): greenlet in ./tl_env/lib/python2.7/site-packages (from gevent)
Installing collected packages: gevent
Running setup.py install for gevent
building 'gevent.core' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.6-intel-2.7/gevent/core.o
In file included from gevent/core.c:225:
gevent/libevent.h:9:19: error: event.h: No such file or directory
gevent/libevent.h:38:20: error: evhttp.h: No such file or directory
gevent/libevent.h:39:19: error: evdns.h: No such file or directory
gevent/core.c:361: error: field ‘ev’ has incomplete type
gevent/core.c:741: warning: parameter names (without types) in function declaration
gevent/core.c: In function ‘__pyx_f_6gevent_4core___event_handler’:
gevent/core.c:1619: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:1619: error: (Each undeclared identifier is reported only once
gevent/core.c:15376: warning: assignment makes pointer from integer without a cast
[... about 1000 more lines of compiler errors...]
gevent/core.c:15385: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4http___init__’:
gevent/core.c:15559: warning: assignment makes pointer from integer without a cast
gevent/core.c: At top level:
gevent/core.c:21272: error: expected ‘)’ before ‘val’
lipo: can't figure out the architecture type of: /var/folders/s5/t94kn0p10hdgxzx9_9sprpg40000gq/T//cczk54q7.out
error: command 'gcc-4.2' failed with exit status 1
Complete output from command /Users/jacob/code/toplevel/tl_env/bin/python -c "import setuptools;__file__='/Users/jacob/code/toplevel/tl_env/build/gevent/setup.py';exec(compile(open(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/s5/t94kn0p10hdgxzx9_9sprpg40000gq/T/pip-s2hPd3-record/install-record.txt --install-headers /Users/jacob/code/toplevel/tl_env/bin/../include/site/python2.7:
running install
running build
running build_py
running build_ext
building 'gevent.core' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.6-intel-2.7/gevent/core.o
python macos osx-lion gevent
1
pypi.python.org/packages/source/g/gevent/gevent-0.13.6.tar.gz download it here. and install using sudo python setup.py install -I /opt/local/include -L /opt/local/lib. Assuming you have installed libevent via Macports atleast.
– meson10
Nov 18 '11 at 14:50
15
Closing this as 'not a real question' is extraordinarily unhelpful. It might not meet some abstract criteria of 'realness', but being able to find this page and read the supplied answers just saved me a whole bunch of time.
– Jonathan Hartley
Jul 20 '12 at 10:10
The new version of gevent, currently 1.0beta, is available on google code, and no longer relies on libevent. It installs fine on OSX, although you have to download the sdist and install manually, because it isn't on PyPI yet.
– Jonathan Hartley
Jul 20 '12 at 10:11
I know this is an older post, but I also found stackoverflow.com/questions/32417141/… helpful for problems installing gevent on OSX 10.10.5. Specifically, usingCFLAGS='-std=c99' pip install gevent
will use an older, compatible compiler. The new question isn't a duplicate per se, but I also don't want people to waste as much time as I did chasing unrelated solutions.
– akosel
Sep 23 '15 at 3:06
add a comment |
Python library gevent
, version 0.13.6 (the current version on PyPI) will not pip install
on OS X Lion, Python 2.7 (and probably others.) It works fine on Snow Leopard.
How can I get this library installed?
Bonus points if it can be done using pip install
, rather than a manual or custom process, because then it will play nicely with automated builds.
Here is my pip install
output:
pip install gevent
Downloading/unpacking gevent
Running setup.py egg_info for package gevent
Requirement already satisfied (use --upgrade to upgrade): greenlet in ./tl_env/lib/python2.7/site-packages (from gevent)
Installing collected packages: gevent
Running setup.py install for gevent
building 'gevent.core' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.6-intel-2.7/gevent/core.o
In file included from gevent/core.c:225:
gevent/libevent.h:9:19: error: event.h: No such file or directory
gevent/libevent.h:38:20: error: evhttp.h: No such file or directory
gevent/libevent.h:39:19: error: evdns.h: No such file or directory
gevent/core.c:361: error: field ‘ev’ has incomplete type
gevent/core.c:741: warning: parameter names (without types) in function declaration
gevent/core.c: In function ‘__pyx_f_6gevent_4core___event_handler’:
gevent/core.c:1619: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:1619: error: (Each undeclared identifier is reported only once
gevent/core.c:15376: warning: assignment makes pointer from integer without a cast
[... about 1000 more lines of compiler errors...]
gevent/core.c:15385: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4http___init__’:
gevent/core.c:15559: warning: assignment makes pointer from integer without a cast
gevent/core.c: At top level:
gevent/core.c:21272: error: expected ‘)’ before ‘val’
lipo: can't figure out the architecture type of: /var/folders/s5/t94kn0p10hdgxzx9_9sprpg40000gq/T//cczk54q7.out
error: command 'gcc-4.2' failed with exit status 1
Complete output from command /Users/jacob/code/toplevel/tl_env/bin/python -c "import setuptools;__file__='/Users/jacob/code/toplevel/tl_env/build/gevent/setup.py';exec(compile(open(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/s5/t94kn0p10hdgxzx9_9sprpg40000gq/T/pip-s2hPd3-record/install-record.txt --install-headers /Users/jacob/code/toplevel/tl_env/bin/../include/site/python2.7:
running install
running build
running build_py
running build_ext
building 'gevent.core' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.6-intel-2.7/gevent/core.o
python macos osx-lion gevent
Python library gevent
, version 0.13.6 (the current version on PyPI) will not pip install
on OS X Lion, Python 2.7 (and probably others.) It works fine on Snow Leopard.
How can I get this library installed?
Bonus points if it can be done using pip install
, rather than a manual or custom process, because then it will play nicely with automated builds.
Here is my pip install
output:
pip install gevent
Downloading/unpacking gevent
Running setup.py egg_info for package gevent
Requirement already satisfied (use --upgrade to upgrade): greenlet in ./tl_env/lib/python2.7/site-packages (from gevent)
Installing collected packages: gevent
Running setup.py install for gevent
building 'gevent.core' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.6-intel-2.7/gevent/core.o
In file included from gevent/core.c:225:
gevent/libevent.h:9:19: error: event.h: No such file or directory
gevent/libevent.h:38:20: error: evhttp.h: No such file or directory
gevent/libevent.h:39:19: error: evdns.h: No such file or directory
gevent/core.c:361: error: field ‘ev’ has incomplete type
gevent/core.c:741: warning: parameter names (without types) in function declaration
gevent/core.c: In function ‘__pyx_f_6gevent_4core___event_handler’:
gevent/core.c:1619: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:1619: error: (Each undeclared identifier is reported only once
gevent/core.c:15376: warning: assignment makes pointer from integer without a cast
[... about 1000 more lines of compiler errors...]
gevent/core.c:15385: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4http___init__’:
gevent/core.c:15559: warning: assignment makes pointer from integer without a cast
gevent/core.c: At top level:
gevent/core.c:21272: error: expected ‘)’ before ‘val’
lipo: can't figure out the architecture type of: /var/folders/s5/t94kn0p10hdgxzx9_9sprpg40000gq/T//cczk54q7.out
error: command 'gcc-4.2' failed with exit status 1
Complete output from command /Users/jacob/code/toplevel/tl_env/bin/python -c "import setuptools;__file__='/Users/jacob/code/toplevel/tl_env/build/gevent/setup.py';exec(compile(open(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/s5/t94kn0p10hdgxzx9_9sprpg40000gq/T/pip-s2hPd3-record/install-record.txt --install-headers /Users/jacob/code/toplevel/tl_env/bin/../include/site/python2.7:
running install
running build
running build_py
running build_ext
building 'gevent.core' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c gevent/core.c -o build/temp.macosx-10.6-intel-2.7/gevent/core.o
python macos osx-lion gevent
python macos osx-lion gevent
edited Jan 11 '13 at 3:21
Jeremy
79.9k67288322
79.9k67288322
asked Oct 3 '11 at 1:33
Jacob LylesJacob Lyles
3,17862728
3,17862728
1
pypi.python.org/packages/source/g/gevent/gevent-0.13.6.tar.gz download it here. and install using sudo python setup.py install -I /opt/local/include -L /opt/local/lib. Assuming you have installed libevent via Macports atleast.
– meson10
Nov 18 '11 at 14:50
15
Closing this as 'not a real question' is extraordinarily unhelpful. It might not meet some abstract criteria of 'realness', but being able to find this page and read the supplied answers just saved me a whole bunch of time.
– Jonathan Hartley
Jul 20 '12 at 10:10
The new version of gevent, currently 1.0beta, is available on google code, and no longer relies on libevent. It installs fine on OSX, although you have to download the sdist and install manually, because it isn't on PyPI yet.
– Jonathan Hartley
Jul 20 '12 at 10:11
I know this is an older post, but I also found stackoverflow.com/questions/32417141/… helpful for problems installing gevent on OSX 10.10.5. Specifically, usingCFLAGS='-std=c99' pip install gevent
will use an older, compatible compiler. The new question isn't a duplicate per se, but I also don't want people to waste as much time as I did chasing unrelated solutions.
– akosel
Sep 23 '15 at 3:06
add a comment |
1
pypi.python.org/packages/source/g/gevent/gevent-0.13.6.tar.gz download it here. and install using sudo python setup.py install -I /opt/local/include -L /opt/local/lib. Assuming you have installed libevent via Macports atleast.
– meson10
Nov 18 '11 at 14:50
15
Closing this as 'not a real question' is extraordinarily unhelpful. It might not meet some abstract criteria of 'realness', but being able to find this page and read the supplied answers just saved me a whole bunch of time.
– Jonathan Hartley
Jul 20 '12 at 10:10
The new version of gevent, currently 1.0beta, is available on google code, and no longer relies on libevent. It installs fine on OSX, although you have to download the sdist and install manually, because it isn't on PyPI yet.
– Jonathan Hartley
Jul 20 '12 at 10:11
I know this is an older post, but I also found stackoverflow.com/questions/32417141/… helpful for problems installing gevent on OSX 10.10.5. Specifically, usingCFLAGS='-std=c99' pip install gevent
will use an older, compatible compiler. The new question isn't a duplicate per se, but I also don't want people to waste as much time as I did chasing unrelated solutions.
– akosel
Sep 23 '15 at 3:06
1
1
pypi.python.org/packages/source/g/gevent/gevent-0.13.6.tar.gz download it here. and install using sudo python setup.py install -I /opt/local/include -L /opt/local/lib. Assuming you have installed libevent via Macports atleast.
– meson10
Nov 18 '11 at 14:50
pypi.python.org/packages/source/g/gevent/gevent-0.13.6.tar.gz download it here. and install using sudo python setup.py install -I /opt/local/include -L /opt/local/lib. Assuming you have installed libevent via Macports atleast.
– meson10
Nov 18 '11 at 14:50
15
15
Closing this as 'not a real question' is extraordinarily unhelpful. It might not meet some abstract criteria of 'realness', but being able to find this page and read the supplied answers just saved me a whole bunch of time.
– Jonathan Hartley
Jul 20 '12 at 10:10
Closing this as 'not a real question' is extraordinarily unhelpful. It might not meet some abstract criteria of 'realness', but being able to find this page and read the supplied answers just saved me a whole bunch of time.
– Jonathan Hartley
Jul 20 '12 at 10:10
The new version of gevent, currently 1.0beta, is available on google code, and no longer relies on libevent. It installs fine on OSX, although you have to download the sdist and install manually, because it isn't on PyPI yet.
– Jonathan Hartley
Jul 20 '12 at 10:11
The new version of gevent, currently 1.0beta, is available on google code, and no longer relies on libevent. It installs fine on OSX, although you have to download the sdist and install manually, because it isn't on PyPI yet.
– Jonathan Hartley
Jul 20 '12 at 10:11
I know this is an older post, but I also found stackoverflow.com/questions/32417141/… helpful for problems installing gevent on OSX 10.10.5. Specifically, using
CFLAGS='-std=c99' pip install gevent
will use an older, compatible compiler. The new question isn't a duplicate per se, but I also don't want people to waste as much time as I did chasing unrelated solutions.– akosel
Sep 23 '15 at 3:06
I know this is an older post, but I also found stackoverflow.com/questions/32417141/… helpful for problems installing gevent on OSX 10.10.5. Specifically, using
CFLAGS='-std=c99' pip install gevent
will use an older, compatible compiler. The new question isn't a duplicate per se, but I also don't want people to waste as much time as I did chasing unrelated solutions.– akosel
Sep 23 '15 at 3:06
add a comment |
10 Answers
10
active
oldest
votes
Don't post the entire thing! That's too much! 90% of the time, the first error is enough...
gevent/libevent.h:9:19: error: event.h: No such file or directory
This means that the library which provides the event.h
header is not installed. The library is called libevent (website).
In general, compilation errors like these are a flaw in the build scripts. The build script should give an error message that libevent is not installed, and it is a bug that it did not do so.
To get libevent from MacPorts and then manually tell compiler with CFLAGS
environment variable where to find event.h
and libevent
while running pip.
sudo port install libevent
CFLAGS="-I /opt/local/include -L /opt/local/lib" pip install gevent
You can also use homebrew for installing libevent : brew install libevent
(from David Wolever's comment)
43
Just to add: you can install libevent with homebrew usingbrew install libevent
– David Wolever
Oct 3 '11 at 4:34
9
By definition, the person asking the question is not qualified to judge which parts of the output are important, and hence they should always post the entire thing. Otherwise, important details sometimes get omitted.
– Jonathan Hartley
Jul 20 '12 at 9:56
1
@Mikael Lepistö: Does that actually work? There's no-L
flag, so I think you would get a link error.
– Dietrich Epp
Aug 1 '12 at 22:38
1
I had the same experience as @DietrichEpp and needed toCFLAGS="-I /opt/local/include -L /opt/local/lib"
on Lion
– Kristian Glass
Aug 17 '12 at 17:25
1
@KristianGlass: Since you confirmed my expectations, I edited it in. I suspect Mikael Lepistö may have some customized environment variables or something like that.
– Dietrich Epp
Aug 17 '12 at 20:27
|
show 5 more comments
CFLAGS='-std=c99' pip install gevent
See in: Can't install gevent OSX 10.11
on OS X 10.11, clang uses c11 as the default, so just turn it back to c99.
add a comment |
After a while, I realized that the paths for the CFLAGS variable mentioned above works when installing libevent from port, but not from brew. The following worked for me (on OSX Mavericks):
$ brew install libevent
$ export CFLAGS="-I /usr/local/Cellar/libevent/2.0.21/include -L /usr/local/Cellar/libevent/2.0.21/lib"
$ pip install gevent
wish there were second answer acceptability. The original answer seems based of of macports rather than homebrew. This solved for me. Thanks.
– Lukas
Mar 4 '14 at 2:18
can you please explain what does the second command do ?
– Sourav Prem
Dec 8 '16 at 9:56
It sets a few c-compiler flags needed for pip to be able to build and install gevent (en.wikipedia.org/wiki/CFLAGS)
– Ramiro Berrelleza
Dec 9 '16 at 7:27
add a comment |
This is the way I found the easiest:
install libevent using homebrew
$ brew install libevent
install gevent
$ pip install gevent
This was the only way I could get it to work.
1
I get "ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)" when I run: brew install libevent
– brianray
Oct 2 '13 at 17:47
add a comment |
Found this answer when looking for help installing on Snow Leopard, posting this in case someone else comes this way with the same problem.
I had libevent installed via macports.
export CFLAGS=-I/opt/local/include
export LDFLAGS=-L/opt/local/lib
sudo pip install gevent
I have libevents installed via macports but I get same error with this commands
– hithwen
May 16 '13 at 15:50
add a comment |
I had libevent installed via brew and it failed too, what worked was similar to what Stephen done, but pointing to brew default install:
CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib pip install gevent
add a comment |
In case you install all from sources and use csh the following works on mac os 10.9
download latest stable http://libevent.org/ libevent-2.0.21-stable
- ./configure
- make
- sudo make install
virtualenv env
source env/bin/activate.csh
setenv CFLAGS "-I /usr/local/include -L /usr/local/lib"
pip install gevent
add a comment |
I use virtualenv and virtualenv wrapper, and so I wanted this to be self contained. I got gevent working like so:
Assuming you have virtual env setup, then:
workon my_virtual_env
Then download libevent and install it against the virtualenv.
curl -L -O https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix="$VIRTUAL_ENV"
make && make install
I'm assuming you've got gcc 5+ installed (I use brew)
Hope this helps.
add a comment |
sudo pip install cython git+git://github.com/gevent/gevent.git#egg=gevent
1
Consider describing what your are suggesting and the reasons for the same.
– pradyunsg
Sep 20 '15 at 16:01
add a comment |
I am using MacOs High Sierra (10.13.3)
First I did :
brew install libevent
I upgraded my pip version to pip-18.0.
then tried installing again with following :-
pip install gevent
it worked.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7630388%2fhow-can-i-install-the-python-library-gevent-on-mac-os-x-lion%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
10 Answers
10
active
oldest
votes
10 Answers
10
active
oldest
votes
active
oldest
votes
active
oldest
votes
Don't post the entire thing! That's too much! 90% of the time, the first error is enough...
gevent/libevent.h:9:19: error: event.h: No such file or directory
This means that the library which provides the event.h
header is not installed. The library is called libevent (website).
In general, compilation errors like these are a flaw in the build scripts. The build script should give an error message that libevent is not installed, and it is a bug that it did not do so.
To get libevent from MacPorts and then manually tell compiler with CFLAGS
environment variable where to find event.h
and libevent
while running pip.
sudo port install libevent
CFLAGS="-I /opt/local/include -L /opt/local/lib" pip install gevent
You can also use homebrew for installing libevent : brew install libevent
(from David Wolever's comment)
43
Just to add: you can install libevent with homebrew usingbrew install libevent
– David Wolever
Oct 3 '11 at 4:34
9
By definition, the person asking the question is not qualified to judge which parts of the output are important, and hence they should always post the entire thing. Otherwise, important details sometimes get omitted.
– Jonathan Hartley
Jul 20 '12 at 9:56
1
@Mikael Lepistö: Does that actually work? There's no-L
flag, so I think you would get a link error.
– Dietrich Epp
Aug 1 '12 at 22:38
1
I had the same experience as @DietrichEpp and needed toCFLAGS="-I /opt/local/include -L /opt/local/lib"
on Lion
– Kristian Glass
Aug 17 '12 at 17:25
1
@KristianGlass: Since you confirmed my expectations, I edited it in. I suspect Mikael Lepistö may have some customized environment variables or something like that.
– Dietrich Epp
Aug 17 '12 at 20:27
|
show 5 more comments
Don't post the entire thing! That's too much! 90% of the time, the first error is enough...
gevent/libevent.h:9:19: error: event.h: No such file or directory
This means that the library which provides the event.h
header is not installed. The library is called libevent (website).
In general, compilation errors like these are a flaw in the build scripts. The build script should give an error message that libevent is not installed, and it is a bug that it did not do so.
To get libevent from MacPorts and then manually tell compiler with CFLAGS
environment variable where to find event.h
and libevent
while running pip.
sudo port install libevent
CFLAGS="-I /opt/local/include -L /opt/local/lib" pip install gevent
You can also use homebrew for installing libevent : brew install libevent
(from David Wolever's comment)
43
Just to add: you can install libevent with homebrew usingbrew install libevent
– David Wolever
Oct 3 '11 at 4:34
9
By definition, the person asking the question is not qualified to judge which parts of the output are important, and hence they should always post the entire thing. Otherwise, important details sometimes get omitted.
– Jonathan Hartley
Jul 20 '12 at 9:56
1
@Mikael Lepistö: Does that actually work? There's no-L
flag, so I think you would get a link error.
– Dietrich Epp
Aug 1 '12 at 22:38
1
I had the same experience as @DietrichEpp and needed toCFLAGS="-I /opt/local/include -L /opt/local/lib"
on Lion
– Kristian Glass
Aug 17 '12 at 17:25
1
@KristianGlass: Since you confirmed my expectations, I edited it in. I suspect Mikael Lepistö may have some customized environment variables or something like that.
– Dietrich Epp
Aug 17 '12 at 20:27
|
show 5 more comments
Don't post the entire thing! That's too much! 90% of the time, the first error is enough...
gevent/libevent.h:9:19: error: event.h: No such file or directory
This means that the library which provides the event.h
header is not installed. The library is called libevent (website).
In general, compilation errors like these are a flaw in the build scripts. The build script should give an error message that libevent is not installed, and it is a bug that it did not do so.
To get libevent from MacPorts and then manually tell compiler with CFLAGS
environment variable where to find event.h
and libevent
while running pip.
sudo port install libevent
CFLAGS="-I /opt/local/include -L /opt/local/lib" pip install gevent
You can also use homebrew for installing libevent : brew install libevent
(from David Wolever's comment)
Don't post the entire thing! That's too much! 90% of the time, the first error is enough...
gevent/libevent.h:9:19: error: event.h: No such file or directory
This means that the library which provides the event.h
header is not installed. The library is called libevent (website).
In general, compilation errors like these are a flaw in the build scripts. The build script should give an error message that libevent is not installed, and it is a bug that it did not do so.
To get libevent from MacPorts and then manually tell compiler with CFLAGS
environment variable where to find event.h
and libevent
while running pip.
sudo port install libevent
CFLAGS="-I /opt/local/include -L /opt/local/lib" pip install gevent
You can also use homebrew for installing libevent : brew install libevent
(from David Wolever's comment)
edited Dec 30 '12 at 23:38
Enno Shioji
20.2k125999
20.2k125999
answered Oct 3 '11 at 1:38
Dietrich EppDietrich Epp
157k27263349
157k27263349
43
Just to add: you can install libevent with homebrew usingbrew install libevent
– David Wolever
Oct 3 '11 at 4:34
9
By definition, the person asking the question is not qualified to judge which parts of the output are important, and hence they should always post the entire thing. Otherwise, important details sometimes get omitted.
– Jonathan Hartley
Jul 20 '12 at 9:56
1
@Mikael Lepistö: Does that actually work? There's no-L
flag, so I think you would get a link error.
– Dietrich Epp
Aug 1 '12 at 22:38
1
I had the same experience as @DietrichEpp and needed toCFLAGS="-I /opt/local/include -L /opt/local/lib"
on Lion
– Kristian Glass
Aug 17 '12 at 17:25
1
@KristianGlass: Since you confirmed my expectations, I edited it in. I suspect Mikael Lepistö may have some customized environment variables or something like that.
– Dietrich Epp
Aug 17 '12 at 20:27
|
show 5 more comments
43
Just to add: you can install libevent with homebrew usingbrew install libevent
– David Wolever
Oct 3 '11 at 4:34
9
By definition, the person asking the question is not qualified to judge which parts of the output are important, and hence they should always post the entire thing. Otherwise, important details sometimes get omitted.
– Jonathan Hartley
Jul 20 '12 at 9:56
1
@Mikael Lepistö: Does that actually work? There's no-L
flag, so I think you would get a link error.
– Dietrich Epp
Aug 1 '12 at 22:38
1
I had the same experience as @DietrichEpp and needed toCFLAGS="-I /opt/local/include -L /opt/local/lib"
on Lion
– Kristian Glass
Aug 17 '12 at 17:25
1
@KristianGlass: Since you confirmed my expectations, I edited it in. I suspect Mikael Lepistö may have some customized environment variables or something like that.
– Dietrich Epp
Aug 17 '12 at 20:27
43
43
Just to add: you can install libevent with homebrew using
brew install libevent
– David Wolever
Oct 3 '11 at 4:34
Just to add: you can install libevent with homebrew using
brew install libevent
– David Wolever
Oct 3 '11 at 4:34
9
9
By definition, the person asking the question is not qualified to judge which parts of the output are important, and hence they should always post the entire thing. Otherwise, important details sometimes get omitted.
– Jonathan Hartley
Jul 20 '12 at 9:56
By definition, the person asking the question is not qualified to judge which parts of the output are important, and hence they should always post the entire thing. Otherwise, important details sometimes get omitted.
– Jonathan Hartley
Jul 20 '12 at 9:56
1
1
@Mikael Lepistö: Does that actually work? There's no
-L
flag, so I think you would get a link error.– Dietrich Epp
Aug 1 '12 at 22:38
@Mikael Lepistö: Does that actually work? There's no
-L
flag, so I think you would get a link error.– Dietrich Epp
Aug 1 '12 at 22:38
1
1
I had the same experience as @DietrichEpp and needed to
CFLAGS="-I /opt/local/include -L /opt/local/lib"
on Lion– Kristian Glass
Aug 17 '12 at 17:25
I had the same experience as @DietrichEpp and needed to
CFLAGS="-I /opt/local/include -L /opt/local/lib"
on Lion– Kristian Glass
Aug 17 '12 at 17:25
1
1
@KristianGlass: Since you confirmed my expectations, I edited it in. I suspect Mikael Lepistö may have some customized environment variables or something like that.
– Dietrich Epp
Aug 17 '12 at 20:27
@KristianGlass: Since you confirmed my expectations, I edited it in. I suspect Mikael Lepistö may have some customized environment variables or something like that.
– Dietrich Epp
Aug 17 '12 at 20:27
|
show 5 more comments
CFLAGS='-std=c99' pip install gevent
See in: Can't install gevent OSX 10.11
on OS X 10.11, clang uses c11 as the default, so just turn it back to c99.
add a comment |
CFLAGS='-std=c99' pip install gevent
See in: Can't install gevent OSX 10.11
on OS X 10.11, clang uses c11 as the default, so just turn it back to c99.
add a comment |
CFLAGS='-std=c99' pip install gevent
See in: Can't install gevent OSX 10.11
on OS X 10.11, clang uses c11 as the default, so just turn it back to c99.
CFLAGS='-std=c99' pip install gevent
See in: Can't install gevent OSX 10.11
on OS X 10.11, clang uses c11 as the default, so just turn it back to c99.
edited May 23 '17 at 11:58
Community♦
11
11
answered Oct 30 '15 at 6:38
Legolas BloomLegolas Bloom
736810
736810
add a comment |
add a comment |
After a while, I realized that the paths for the CFLAGS variable mentioned above works when installing libevent from port, but not from brew. The following worked for me (on OSX Mavericks):
$ brew install libevent
$ export CFLAGS="-I /usr/local/Cellar/libevent/2.0.21/include -L /usr/local/Cellar/libevent/2.0.21/lib"
$ pip install gevent
wish there were second answer acceptability. The original answer seems based of of macports rather than homebrew. This solved for me. Thanks.
– Lukas
Mar 4 '14 at 2:18
can you please explain what does the second command do ?
– Sourav Prem
Dec 8 '16 at 9:56
It sets a few c-compiler flags needed for pip to be able to build and install gevent (en.wikipedia.org/wiki/CFLAGS)
– Ramiro Berrelleza
Dec 9 '16 at 7:27
add a comment |
After a while, I realized that the paths for the CFLAGS variable mentioned above works when installing libevent from port, but not from brew. The following worked for me (on OSX Mavericks):
$ brew install libevent
$ export CFLAGS="-I /usr/local/Cellar/libevent/2.0.21/include -L /usr/local/Cellar/libevent/2.0.21/lib"
$ pip install gevent
wish there were second answer acceptability. The original answer seems based of of macports rather than homebrew. This solved for me. Thanks.
– Lukas
Mar 4 '14 at 2:18
can you please explain what does the second command do ?
– Sourav Prem
Dec 8 '16 at 9:56
It sets a few c-compiler flags needed for pip to be able to build and install gevent (en.wikipedia.org/wiki/CFLAGS)
– Ramiro Berrelleza
Dec 9 '16 at 7:27
add a comment |
After a while, I realized that the paths for the CFLAGS variable mentioned above works when installing libevent from port, but not from brew. The following worked for me (on OSX Mavericks):
$ brew install libevent
$ export CFLAGS="-I /usr/local/Cellar/libevent/2.0.21/include -L /usr/local/Cellar/libevent/2.0.21/lib"
$ pip install gevent
After a while, I realized that the paths for the CFLAGS variable mentioned above works when installing libevent from port, but not from brew. The following worked for me (on OSX Mavericks):
$ brew install libevent
$ export CFLAGS="-I /usr/local/Cellar/libevent/2.0.21/include -L /usr/local/Cellar/libevent/2.0.21/lib"
$ pip install gevent
edited Dec 5 '13 at 20:45
answered Oct 24 '13 at 19:02
Ramiro BerrellezaRamiro Berrelleza
1,5401020
1,5401020
wish there were second answer acceptability. The original answer seems based of of macports rather than homebrew. This solved for me. Thanks.
– Lukas
Mar 4 '14 at 2:18
can you please explain what does the second command do ?
– Sourav Prem
Dec 8 '16 at 9:56
It sets a few c-compiler flags needed for pip to be able to build and install gevent (en.wikipedia.org/wiki/CFLAGS)
– Ramiro Berrelleza
Dec 9 '16 at 7:27
add a comment |
wish there were second answer acceptability. The original answer seems based of of macports rather than homebrew. This solved for me. Thanks.
– Lukas
Mar 4 '14 at 2:18
can you please explain what does the second command do ?
– Sourav Prem
Dec 8 '16 at 9:56
It sets a few c-compiler flags needed for pip to be able to build and install gevent (en.wikipedia.org/wiki/CFLAGS)
– Ramiro Berrelleza
Dec 9 '16 at 7:27
wish there were second answer acceptability. The original answer seems based of of macports rather than homebrew. This solved for me. Thanks.
– Lukas
Mar 4 '14 at 2:18
wish there were second answer acceptability. The original answer seems based of of macports rather than homebrew. This solved for me. Thanks.
– Lukas
Mar 4 '14 at 2:18
can you please explain what does the second command do ?
– Sourav Prem
Dec 8 '16 at 9:56
can you please explain what does the second command do ?
– Sourav Prem
Dec 8 '16 at 9:56
It sets a few c-compiler flags needed for pip to be able to build and install gevent (en.wikipedia.org/wiki/CFLAGS)
– Ramiro Berrelleza
Dec 9 '16 at 7:27
It sets a few c-compiler flags needed for pip to be able to build and install gevent (en.wikipedia.org/wiki/CFLAGS)
– Ramiro Berrelleza
Dec 9 '16 at 7:27
add a comment |
This is the way I found the easiest:
install libevent using homebrew
$ brew install libevent
install gevent
$ pip install gevent
This was the only way I could get it to work.
1
I get "ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)" when I run: brew install libevent
– brianray
Oct 2 '13 at 17:47
add a comment |
This is the way I found the easiest:
install libevent using homebrew
$ brew install libevent
install gevent
$ pip install gevent
This was the only way I could get it to work.
1
I get "ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)" when I run: brew install libevent
– brianray
Oct 2 '13 at 17:47
add a comment |
This is the way I found the easiest:
install libevent using homebrew
$ brew install libevent
install gevent
$ pip install gevent
This was the only way I could get it to work.
This is the way I found the easiest:
install libevent using homebrew
$ brew install libevent
install gevent
$ pip install gevent
This was the only way I could get it to work.
edited Aug 9 '13 at 0:58
falinsky
3,46232043
3,46232043
answered Aug 9 '13 at 0:34
sandmansandman
15321
15321
1
I get "ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)" when I run: brew install libevent
– brianray
Oct 2 '13 at 17:47
add a comment |
1
I get "ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)" when I run: brew install libevent
– brianray
Oct 2 '13 at 17:47
1
1
I get "ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)" when I run: brew install libevent
– brianray
Oct 2 '13 at 17:47
I get "ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)" when I run: brew install libevent
– brianray
Oct 2 '13 at 17:47
add a comment |
Found this answer when looking for help installing on Snow Leopard, posting this in case someone else comes this way with the same problem.
I had libevent installed via macports.
export CFLAGS=-I/opt/local/include
export LDFLAGS=-L/opt/local/lib
sudo pip install gevent
I have libevents installed via macports but I get same error with this commands
– hithwen
May 16 '13 at 15:50
add a comment |
Found this answer when looking for help installing on Snow Leopard, posting this in case someone else comes this way with the same problem.
I had libevent installed via macports.
export CFLAGS=-I/opt/local/include
export LDFLAGS=-L/opt/local/lib
sudo pip install gevent
I have libevents installed via macports but I get same error with this commands
– hithwen
May 16 '13 at 15:50
add a comment |
Found this answer when looking for help installing on Snow Leopard, posting this in case someone else comes this way with the same problem.
I had libevent installed via macports.
export CFLAGS=-I/opt/local/include
export LDFLAGS=-L/opt/local/lib
sudo pip install gevent
Found this answer when looking for help installing on Snow Leopard, posting this in case someone else comes this way with the same problem.
I had libevent installed via macports.
export CFLAGS=-I/opt/local/include
export LDFLAGS=-L/opt/local/lib
sudo pip install gevent
answered Feb 23 '13 at 18:45
StephenStephen
411
411
I have libevents installed via macports but I get same error with this commands
– hithwen
May 16 '13 at 15:50
add a comment |
I have libevents installed via macports but I get same error with this commands
– hithwen
May 16 '13 at 15:50
I have libevents installed via macports but I get same error with this commands
– hithwen
May 16 '13 at 15:50
I have libevents installed via macports but I get same error with this commands
– hithwen
May 16 '13 at 15:50
add a comment |
I had libevent installed via brew and it failed too, what worked was similar to what Stephen done, but pointing to brew default install:
CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib pip install gevent
add a comment |
I had libevent installed via brew and it failed too, what worked was similar to what Stephen done, but pointing to brew default install:
CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib pip install gevent
add a comment |
I had libevent installed via brew and it failed too, what worked was similar to what Stephen done, but pointing to brew default install:
CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib pip install gevent
I had libevent installed via brew and it failed too, what worked was similar to what Stephen done, but pointing to brew default install:
CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib pip install gevent
edited Sep 19 '13 at 18:10
answered Aug 27 '13 at 20:43
Mauricio Souza LimaMauricio Souza Lima
33029
33029
add a comment |
add a comment |
In case you install all from sources and use csh the following works on mac os 10.9
download latest stable http://libevent.org/ libevent-2.0.21-stable
- ./configure
- make
- sudo make install
virtualenv env
source env/bin/activate.csh
setenv CFLAGS "-I /usr/local/include -L /usr/local/lib"
pip install gevent
add a comment |
In case you install all from sources and use csh the following works on mac os 10.9
download latest stable http://libevent.org/ libevent-2.0.21-stable
- ./configure
- make
- sudo make install
virtualenv env
source env/bin/activate.csh
setenv CFLAGS "-I /usr/local/include -L /usr/local/lib"
pip install gevent
add a comment |
In case you install all from sources and use csh the following works on mac os 10.9
download latest stable http://libevent.org/ libevent-2.0.21-stable
- ./configure
- make
- sudo make install
virtualenv env
source env/bin/activate.csh
setenv CFLAGS "-I /usr/local/include -L /usr/local/lib"
pip install gevent
In case you install all from sources and use csh the following works on mac os 10.9
download latest stable http://libevent.org/ libevent-2.0.21-stable
- ./configure
- make
- sudo make install
virtualenv env
source env/bin/activate.csh
setenv CFLAGS "-I /usr/local/include -L /usr/local/lib"
pip install gevent
answered Oct 26 '13 at 22:25
nbarinbari
12.9k32446
12.9k32446
add a comment |
add a comment |
I use virtualenv and virtualenv wrapper, and so I wanted this to be self contained. I got gevent working like so:
Assuming you have virtual env setup, then:
workon my_virtual_env
Then download libevent and install it against the virtualenv.
curl -L -O https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix="$VIRTUAL_ENV"
make && make install
I'm assuming you've got gcc 5+ installed (I use brew)
Hope this helps.
add a comment |
I use virtualenv and virtualenv wrapper, and so I wanted this to be self contained. I got gevent working like so:
Assuming you have virtual env setup, then:
workon my_virtual_env
Then download libevent and install it against the virtualenv.
curl -L -O https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix="$VIRTUAL_ENV"
make && make install
I'm assuming you've got gcc 5+ installed (I use brew)
Hope this helps.
add a comment |
I use virtualenv and virtualenv wrapper, and so I wanted this to be self contained. I got gevent working like so:
Assuming you have virtual env setup, then:
workon my_virtual_env
Then download libevent and install it against the virtualenv.
curl -L -O https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix="$VIRTUAL_ENV"
make && make install
I'm assuming you've got gcc 5+ installed (I use brew)
Hope this helps.
I use virtualenv and virtualenv wrapper, and so I wanted this to be self contained. I got gevent working like so:
Assuming you have virtual env setup, then:
workon my_virtual_env
Then download libevent and install it against the virtualenv.
curl -L -O https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix="$VIRTUAL_ENV"
make && make install
I'm assuming you've got gcc 5+ installed (I use brew)
Hope this helps.
answered Sep 6 '15 at 1:58
silverdaggersilverdagger
482520
482520
add a comment |
add a comment |
sudo pip install cython git+git://github.com/gevent/gevent.git#egg=gevent
1
Consider describing what your are suggesting and the reasons for the same.
– pradyunsg
Sep 20 '15 at 16:01
add a comment |
sudo pip install cython git+git://github.com/gevent/gevent.git#egg=gevent
1
Consider describing what your are suggesting and the reasons for the same.
– pradyunsg
Sep 20 '15 at 16:01
add a comment |
sudo pip install cython git+git://github.com/gevent/gevent.git#egg=gevent
sudo pip install cython git+git://github.com/gevent/gevent.git#egg=gevent
edited Dec 11 '15 at 20:21
elp
5,943754107
5,943754107
answered Sep 20 '15 at 8:02
user200778user200778
10914
10914
1
Consider describing what your are suggesting and the reasons for the same.
– pradyunsg
Sep 20 '15 at 16:01
add a comment |
1
Consider describing what your are suggesting and the reasons for the same.
– pradyunsg
Sep 20 '15 at 16:01
1
1
Consider describing what your are suggesting and the reasons for the same.
– pradyunsg
Sep 20 '15 at 16:01
Consider describing what your are suggesting and the reasons for the same.
– pradyunsg
Sep 20 '15 at 16:01
add a comment |
I am using MacOs High Sierra (10.13.3)
First I did :
brew install libevent
I upgraded my pip version to pip-18.0.
then tried installing again with following :-
pip install gevent
it worked.
add a comment |
I am using MacOs High Sierra (10.13.3)
First I did :
brew install libevent
I upgraded my pip version to pip-18.0.
then tried installing again with following :-
pip install gevent
it worked.
add a comment |
I am using MacOs High Sierra (10.13.3)
First I did :
brew install libevent
I upgraded my pip version to pip-18.0.
then tried installing again with following :-
pip install gevent
it worked.
I am using MacOs High Sierra (10.13.3)
First I did :
brew install libevent
I upgraded my pip version to pip-18.0.
then tried installing again with following :-
pip install gevent
it worked.
edited Mar 9 at 4:20
Vaibhav Mule
3,14112546
3,14112546
answered Sep 23 '18 at 16:30
sandipsandip
1612
1612
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f7630388%2fhow-can-i-install-the-python-library-gevent-on-mac-os-x-lion%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
pypi.python.org/packages/source/g/gevent/gevent-0.13.6.tar.gz download it here. and install using sudo python setup.py install -I /opt/local/include -L /opt/local/lib. Assuming you have installed libevent via Macports atleast.
– meson10
Nov 18 '11 at 14:50
15
Closing this as 'not a real question' is extraordinarily unhelpful. It might not meet some abstract criteria of 'realness', but being able to find this page and read the supplied answers just saved me a whole bunch of time.
– Jonathan Hartley
Jul 20 '12 at 10:10
The new version of gevent, currently 1.0beta, is available on google code, and no longer relies on libevent. It installs fine on OSX, although you have to download the sdist and install manually, because it isn't on PyPI yet.
– Jonathan Hartley
Jul 20 '12 at 10:11
I know this is an older post, but I also found stackoverflow.com/questions/32417141/… helpful for problems installing gevent on OSX 10.10.5. Specifically, using
CFLAGS='-std=c99' pip install gevent
will use an older, compatible compiler. The new question isn't a duplicate per se, but I also don't want people to waste as much time as I did chasing unrelated solutions.– akosel
Sep 23 '15 at 3:06