I'm tying to install tables as follows (I have no sudo permissions):
pip install --user tables
And I get the following error:
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-pWg1M_/tables/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mOibUT-record/install-record.txt --single-version-externally-managed --compile --user failed with error code 1 in /tmp/pip-build-pWg1M_/tables Storing debug log for failure in /home/hudson/pg/fkgm22/.pip/pip.log
I can install other packages with this method, but not tables... any idea?
Thanks
You can check the log pip has mentioned at /home/hudson/pg/fkgm22/.pip/pip.log to see what went wrong. I guess you will get a much more detailed error message which you can try to analyse.
Related
when running that command python manage.py runserver I get this error
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
I try to pip install mysqlclient and get this
Command "C:\Users\xavi6\PycharmProjects\LES\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xavi6\\App
Data\\Local\\Temp\\pip-install-8q8y5ra6\\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 C:\Users\xavi6\AppData\Local\Temp\pip-record-zvgp3gov\inst
all-record.txt --single-version-externally-managed --compile --install-headers C:\Users\xavi6\PycharmProjects\LES\venv\include\site\py
thon3.7\mysqlclient" failed with error code 1 in C:\Users\xavi6\AppData\Local\Temp\pip-install-8q8y5ra6\mysqlclient\
I'm using pycharm and I think I try everything. How can I resolve this error?
have you installed pip install mysqlclient
Then edit init.py
import pymysql
pymysql.install_as_MySQLdb()
and then let me know it worked or not.Happy coding
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.
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 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
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.