Error when trying to install gpaw - python

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?

Related

how to install pyaudio

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/

Error connecting Python with MySQL

I received a python project and I'm having trouble running its requirements, particularly anything to do with MySQL. Whenever I run pip install mysqlclient, I get 13 warnings and this error in red.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-eBsQYy/mysqlclient/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-sxHiel-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-eBsQYy/mysqlclient/
When I run pip install mysql-python I get 14 warning with a similar error in red.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-qW79lT/mysql-python/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-13maVa-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-qW79lT/mysql-python/
Any ideas?
Try to install “pymysql”. I got the warning as well trying to install MySQL for Python in Python 3. After doing some research, pymysql seems to be what needs to be installed moving forward. Pip install pymysql.

Error Installing SciPy

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\

How can I install pymavlink to Raspberry?

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

Error when installing 'pycryptodome'

Whenever I install the package, I get this string out:-
Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/l8/nrwgdgr96v33vfcd95r2yl3m0000gp/T/pip-build-AJpKPV/pycryptodomex/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/l8/nrwgdgr96v33vfcd95r2yl3m0000gp/T/pip-GEiSB1-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/l8/nrwgdgr96v33vfcd95r2yl3m0000gp/T/pip-build-AJpKPV/pycryptodomex/
Can anyone help?
Have you tried to upgrade pip first?
pip install --upgrade pip
And then install the pycryptodome package.

Categories