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
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.
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
After making sure that pip is installed, I tried installing the twitter package using pip install python-twitter in the terminal but i get this error:
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-build-5dzoDc/oauthlib/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/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-GuXf_v-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-build-5dzoDc/oauthlib/
It's worth noting I have Python 3.6 installed on a Mac, apart from the default 2.7.
The code also ends with this "error: could not create '/Library/Python/2.7/site-packages/oauthlib': Permission denied"
I am unable to install psutil by requeriments.txt neither by logging in with heroku run bash command and using the pip install psutil command.
The log is very large, so, I will put the "most important" part of it:
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-759b4csi/psutil/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-addox7ji-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-759b4csi/psutil/
Can someone help me with this?
I am using python 3.6.0 and pip 9.0.1
I used pip freeze > requirements.txt to generate a new requirements and this new file was processed by the deploy tool correctly.
I have a windows computer and I tried installing SciPy in the Command Prompt using pip. "Pip install SciPy" this worked for other functions that I have installed; however, for this one it gave me an error. Any help would be great
Below is the Error Code:
Command
"c:\users\wdley\appdata\local\programs\python\python36-32\python.exe
-u -c "import setuptools, tokenize;file='C:\Users\wdley\AppData\Local\Temp\pip-build-c0h_k6mh\SciPY\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\wdley\AppData\Local\Temp\pip-0i8tdreh-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users\wdley\AppData\Local\Temp\pip-build-c0h_k6mh\SciPY\