尝试下载mysqlclien时发生gcc错误

2024-05-17 06:22:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我一直在尝试将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

Tags: installpyenvforwitherrorstudentcommand