尝试下载mysqlclient时出现gcc错误

时间:2019-06-12 01:04:31

标签: python mysql django

我一直在尝试将python模型迁移到mysql数据库中。每当我在终端中发出以下命令时:

(sl_env) Nolans-MBP:student_loans NolanMorrow$ python3 manage.py makemigrations 

我知道

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.'''

我输入

(sl_env) Nolans-MBP:student_loans NolanMorrow$ pip3 install mysqlclient

,并出现以下错误。

Running setup.py install for mysqlclient ... error

...

ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1

0 个答案:

没有答案
相关问题