[ad_1]
i tried to install mysqlclient but it doesn’t work.
this is a part of the error message :
[email protected]:~$ sudo pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-2.1.0.tar.gz (87 kB)
Building wheels for collected packages: mysqlclient
Building wheel for mysqlclient (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-s8p2sg7z/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-s8p2sg7z/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)
(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0r3vfxv6
cwd: /tmp/pip-install-s8p2sg7z/mysqlclient/
Complete output (44 lines):
mysql_config --version
['8.0.29']
mysql_config --libs
['-L/usr/lib/x86_64-linux-gnu', '-lmysqlclient', '-lpthread', '-ldl', '-lz', '-lssl', '-lcrypto', '-lresolv', '-lm', '-lrt']
mysql_config --cflags
i tired with :
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
but it doesn’t work too
[ad_2]