I have been having trouble installing gevent on Mac OS X Mavericks. I am trying to install into a virtual environment. First I installed libevent with brew. Then I ran:
pip install gevent
Unfortunately, I could not get it installed because I kept getting this error message:
Command /Users/christopherspears/.virtualenvs/traffic/bin/python -c "import setuptools, tokenize;__file__='/Users/christopherspears/.virtualenvs/traffic/build/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/yv/vnky4wpd7kl4bp4qb4hlqmhw0000gn/T/pip-91tw1E-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/christopherspears/.virtualenvs/traffic/include/site/python2.7 failed with error code 1 in /Users/christopherspears/.virtualenvs/traffic/build/greenlet
Storing debug log for failure in /Users/christopherspears/.pip/pip.log
The issue seems to be with greenlet. Has anyone else com across this error?
Related
Hi I'm trying to install dlib in VSCode, with pip install dlib, but it gave me this error. Wondering if anyone can help
----------------------------------------
Command "c:\users\admin\documents\python\pyai3.6\scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Admin\AppData\Local\Temp\pip-install-j42ksv_7\dlib\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Admin\AppData\Local\Temp\pip-record-y1xi59yt\install-record.txt --single-version-externally-managed --compile
--install-headers c:\users\admin\documents\python\pyai3.6\include\site\python3.6\dlib" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-j42ksv_7\dlib\
I didn't realize I installed the 32-bit version of python instead of 64-bit. I just need to download the 64-bit version and run that.
With Mac OS Ver 10.13.1 and Python 3.6:
I have installed Python with a success, but when I input sudo pip3 install pybluez in the terminal.app.The result is as follows:
The warning and error info. log :
(1)
Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-01oswgn6/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ekqpt5n6-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-01oswgn6/pybluez/
(2)Failed building wheel for pybluez
(3)The directory '/Users/ringo/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Then I googled and re-input the following command:
sudo -H pip3 install pbluez,and 2 errors are :
(1)Failed building wheel for pybluez
(2)Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-krv0pwmm/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-38mly9ts-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-krv0pwmm/pybluez/
I have googled and no effective ways to the issue.Any one has any idea about it is appreciated.
Bluez is the "official Linux Bluetooth protocol stack", i.e., not meant for macOS.
If you want to develop a Bluetooth application for macOS target, check https://developer.apple.com/bluetooth/
I tried running pip install RPIO and found that in the process of installation, the following error occurs.
Command "c:\python27\python.exe -u -c "import setuptools,
tokenize;__file__='c:\\users\\xxxxxx\\appdata\\local\\temp\\pip-build-
ef4z2k\\RPIO\\setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record
c:\users\xxxxxx\appdata\local\temp\pip-3_ddbu-record\install-record.txt --
single-version-externally-managed --compile" failed with error code 1 in
c:\users\xxxxxx\appdata\local\temp\pip-build-ef4z2k\RPIO\
Most modules get installed without any such issue. I installed plotly and scipy modules right before these, and no issues were faced there. Any idea where I might be going wrong?
I'm doing a small file checker, and I need to do a (character pressed?) command. So I used getch. I get this error when trying to pip install it:
Command "c:\python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\manolo\\appdata\\local\\temp\\pip-build-ehxrw3\\getch\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record c:\users\manolo\appdata\local\temp\pip-flekfr-re
cord\install-record.txt --single-version-externally-managed --compile" failed wi
th error code 1 in c:\users\manolo\appdata\local\temp\pip-build-ehxrw3\getch
Can someone say to me how to fix this?
Also, I have python 2.7 running on win32, windows 7.
You can change getch for msvcrt, and it's pre-installed on Windows.
Problem when I try to use pip for installs that are preventing me from adding new packages. I previously updated my default Mac OSX Mavericks version from 2.7 to 3.4 (Anaconda) then removed Anaconda.
I This is the error message I get.
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/4c/znnkwgfj68l4665x2_h5lb200000gn/T/pip_build_user/dom/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/4c/znnkwgfj68l4665x2_h5lb200000gn/T/pip-UjquQV-
record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/4c/znnkwgfj68l4665x2_h5lb200000gn/T/pip_build_user/dom
Storing debug log for failure in /Users/user/Library/Logs/pip.log