pip install regex is failing on Ubuntu 18.04 server with this error:
I already installed packages mentioned in the supposed to be duplicate question. So this is not a duplicate.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
'Failed building wheel for regex'
error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
----------------------------------------
Command "/home/rc/Env/rcasipe/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ti8hji_4/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 /tmp/pip-record-i25nnqtk/install-record.txt --single-version-externally-managed --compile --install-headers /home/rc/Env/rcasipe/include/site/python3.6/regex" failed with error code 1 in /tmp/pip-install-ti8hji_4/regex/
How do you fix this? Thanks.
Try: pip3 install regex --user
Related
I have a Ubuntu 18.04 and executed the packages from requirements.txt in the following Github repository https://github.com/alyssaq/face_morpher.
While installing facemorpher using the following command pip3 install facemorpher getting the errors given below. I don't find opencv2 folder
Error Logs:
In file included from src/py_wrapper.cpp:13:0:
src/stasm.h:33:10: fatal error: opencv2/opencv.hpp: No such file or directory
#include "opencv2/opencv.hpp"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-g5nna6ak/stasm/setup.py';f In file included from src/py_wrapper.cpp:13:0:
src/stasm.h:33:10: fatal error: opencv2/opencv.hpp: No such file or directory
#inc ----------------------------------------
lude "opencv2/opencv.hpp"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-g5nna6ak/stasm/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-7nioxx18-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-g5nna6ak/stasm/
=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-7nioxx18-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-g5nna6ak/stasm/`
Hello I am on a Mac and I already installed port audio with
brew install portaudio
and now when I do pip install pyaudio it gives me the following error:
1 error generated.
error: command 'x86_64-apple-darwin13.4.0-clang' failed with exit status 1
Command
"/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c
"import setuptools,
tokenize;__file__='/private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-install-vg_fqgq_/pyaudio/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-record-3w17es1l/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/private/var/folders/_w/18g6xm5533l7csc0fzph3p6m0000gn/T/pip-install-vg_fqgq_/pyaudio/
When I try to run
sudo pip3 install -U gpaw
I get the following error
Command "/usr/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-n4w3sszk/gpaw/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-1nhmwzay-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-n4w3sszk/gpaw/
with python 2 i do
sudo pip install -U gpaw
I then get:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-tUJx3k/gpaw/
can i change anything in the command to make it run? or do i need a more complicated solution?
I get the following error message:
*bytes, CFIndex length, CFAllocatorRef bytesDeallocator);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1
I used this command:
"//anaconda/bin/python -u -c "import setuptools,
tokenize;file='/private/var/folders/sg/p9ztjwgx1v1cctrr2hmdymcr0000gp/T/pip-build-y_mai_3m/kivy/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/sg/p9ztjwgx1v1cctrr2hmdymcr0000gp/T/pip-_3c7ty_r-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/private/var/folders/sg/p9ztjwgx1v1cctrr2hmdymcr0000gp/T/pip-build-y_mai_3m/kivy/
What could be the reason, how to solve this problem?
I figured it out, as Cython was located inside anaconda pip couldn't install kivy, and used pip3 to install Cython and so kivy, now it is installed :) thanks people
I wrote this command to install:
sudo pip install pymavlink
and got this error:
ImportError: No module named future
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-gsZblL/pymavlink/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ppCGHA-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-gsZblL/pymavlink
Storing debug log for failure in /root/.pip/pip.log
I have solved the problem installing this package:
$ sudo pip install dronekit