Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/288.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法在ubuntu中使用pip3为django安装mysqlclient_Python_Django_Mysql Connector - Fatal编程技术网

Python 无法在ubuntu中使用pip3为django安装mysqlclient

Python 无法在ubuntu中使用pip3为django安装mysqlclient,python,django,mysql-connector,Python,Django,Mysql Connector,命令:sudo-H pip3安装mysqlclient 错误: /usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Command "/usr/bin/python3 -u -c "import setup

命令:sudo-H pip3安装mysqlclient

错误:

/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-b0rfercj
/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-lck3vdnw-record
/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in 
/tmp/pip-build-b0rfercj/mysqlclient/
我已经安装了python3dev

python3-dev is already the newest version (3.6.7-1~18.04).

您是否安装了
libssl
libcrypto

sudo apt-get install libssl-dev
sudo apt-get install libssl-dev


您是否安装了
libssl
libcrypto

sudo apt-get install libssl-dev
sudo apt-get install libssl-dev