-
-
Save kenzo0107/f204c7af2b764d15a6c6 to your computer and use it in GitHub Desktop.
sudo yum -y install gcc gcc-c++ kernel-devel | |
sudo yum -y install python-devel libxslt-devel libffi-devel openssl-devel | |
pip install cryptography |
it works, thanks too!
Finally Working, Thanks!
python-devel not available in CentOS5
Thanks 👍
Thanks .
Thanks it helped 👍
1000 thanks, it worked susscesfully!!!
Thanks..
Thanks !
thanks!
don't work on mac
Anything for mac ?
works for me, thanks
Does anyone know how to fix this for mac computers?
Can't download all this in cygwin
ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oryori18/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oryori18/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-record-mu76pg7o/install-record.txt --single-version-externally-managed --compile cwd: /tmp/pip-install-oryori18/mysqlclient/ Complete output (33 lines): /usr/local/python3/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running install running build running build_py creating build creating build/lib.linux-x86_64-3.5 creating build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/_exceptions.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/compat.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/connections.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/converters.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/cursors.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/release.py -> build/lib.linux-x86_64-3.5/MySQLdb copying MySQLdb/times.py -> build/lib.linux-x86_64-3.5/MySQLdb creating build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-3.5/MySQLdb/constants running build_ext building 'MySQLdb._mysql' extension creating build/temp.linux-x86_64-3.5 creating build/temp.linux-x86_64-3.5/MySQLdb gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,4,6,'final',0) -D__version__=1.4.6 -I/usr/include/mysql -I/usr/local/python3/include/python3.5m -c MySQLdb/_mysql.c -o build/temp.linux-x86_64-3.5/MySQLdb/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX MySQLdb/_mysql.c: In function ‘_mysql_ConnectionObject_Initialize’: MySQLdb/_mysql.c:501: error: ‘MYSQL_DEFAULT_AUTH’ undeclared (first use in this function) MySQLdb/_mysql.c:501: error: (Each undeclared identifier is reported only once MySQLdb/_mysql.c:501: error: for each function it appears in.) error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/local/python3/bin/python3.5 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-oryori18/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-oryori18/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-record-mu76pg7o/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
Its works for me too. Thank you.
is correct thx!
Anything for Mac Please
Anything for Mac Please
have the same problem!
Anything for Mac Please
have the same problem!
I, too, have the same problem. Any solution?
Anything for Mac Please
Same!
Thank you!
On AWS EC2, first two lines work for me, and I am using python3
sudo yum -y install gcc gcc-c++ kernel-devel
sudo yum -y install python3-devel libxslt-devel libffi-devel openssl-devel
sudo pip3 install mysqlclient
sudo: yum: command not found
sudo: yum: command not found.
Help to fix this error, please
sudo: yum: command not found.
Help to fix this error, please
install yum
$ sudo apt install yum
Is there any way to install these packages without the root permissions?
I am trying to install them on shared hosting with only basic user permissions.
A non-trivial solution:
yum install openssl-devel bzip2-devel libffi-devel sqlite-devel
yum groupinstall "Development Tools"
Then re-build your Python. It will make Python equipped with these build utilities (gcc, g++ etc.):
cd your/downloaded/python/directory
./configure --enable-optimizations
make altinstall
If you are using venv
, you have to create the venv
again under this corrected python installation.
Thanks. It works.
it works,thanks