This is the error that comes up when installing django channels with pip install channels:
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/arunvm/Desktop/CleverHires/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oisfgik6/twisted/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-689vby9j-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/arunvm/Desktop/CleverHires/include/site/python3.5/twisted" failed with error code 1 in /tmp/pip-build-oisfgik6/twisted/
You don't have Python headers installed.
Please run...
>>> sudo yum install python-devel
Related
On my Vagrant VM
sudo pip3 install ansible
It does not work
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-2wl0xdne-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/cryptography
Storing debug log for failure in /home/vagrant/.pip/pip.log
I do not understand this. Where is actually /home/vagrant directory?
How to fix this?
Python3 version
vagrant#vagrant-ubuntu-trusty-64:~$ python3 --version
Python 3.4.3
I installed pip then I wanna install some packages for test,
It seems not work?
what's the problem?
which python
/usr/bin/python
which pip
/usr/local/bin/pip
sudo easy_install pip
pip install regex
error:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/k0/80ltmx5x61xgnp9ld643mdr80000gn/T/pip-build-YKBgHj/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/k0/80ltmx5x61xgnp9ld643mdr80000gn/T/pip-rQ9FJX-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/k0/80ltmx5x61xgnp9ld643mdr80000gn/T/pip-build-YKBgHj/regex/
I'm trying to instal TA-Lib in Mac Sierra with:
sudo pip install TA-Lib
But I'm getting this error:
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-bqV3xq/TA-Lib/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-5HBbJo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-bqV3xq/TA-Lib/
How can I fix this?
Installation instructions from their github readme indicate that on macos you need the following:
brew install ta-lib
I am installing psycopg2 on Ubuntu 15.10 for Python 3.5. I had this issue firstly:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9enc9eqe/psycopg2
I cured it with this answer: https://stackoverflow.com/a/25855548/3014866
I faced new exception:
Command "/usr/bin/python3.5 -c "import setuptools, tokenize;__file__='/tmp/pip-build-ne0zd8lq/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-m286d8vp-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ne0zd8lq/psycopg2
I don't know how to solve it.
I get the error 1 when I try to pip install <module>. Any module. Ive tried cx_freeze and pyside tonight, and i really need both. How do I resolve this?
cx_freeze error:
Command "c:\users\other\desktop\python3.5.2\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Other\\AppData\\Local\\Temp\\pip-build-fzrlj2j2\\cx-freeze\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Other\AppData\Local\Temp\pip-nv1cmthe-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Other\AppData\Local\Temp\pip-build-fzrlj2j2\cx-freeze\