python - 尝试下载 mysqlclient 时出现 gcc 错误
问题描述
我一直在尝试将 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
解决方案
推荐阅读
- microsoft-graph-api - 授予权限时,Microsoft graph /me/mailFolders 无法正常工作
- c# - 在 C# 中为键调用第二个 .config 时出现问题
- java - 如何在不使用 for 循环的情况下将多个列表中的每个项目映射到 Java 中的对象中
- reactjs - 是否可以在不创建为 Web 部件的情况下在线创建反应应用程序并在共享点中部署?
- visual-studio - Visual Studio 将 Azure DevOps 服务器(本地)添加为符号服务器
- typescript - 接口中的打字稿接口
- java - 如何在 Java/Android 中实现多用户应用程序?
- javascript - 动作分派后组件中的 Redux 状态未更新,但显示在 redux devtools 中
- javascript - 带有垂直线的进度条
- c# - 查询Json如何获取必须数组中的元素