求求各位大佬指点下,已经一天了
我是个Python小白,我需要在MAC上使用Django,运行提示我需要安装mysqlclient,已经在终端中安装成功了,但是在pycharm里还是无法安装,网上看了各种办法都不行,具体报错如下,是在没办法了,该怎么弄啊
pycharm里的报错信息:
Collecting mysqlclient
Using cached mysqlclient-2.1.1.tar.gz (88 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: mysqlclient
Building wheel for mysqlclient (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
mysql_config --version
['8.0.30']
mysql_config --libs
['-L/Users/zhaojunhao/Documents/代码仓库/xueranzhonglou/xueran/venv/lib', '-lmysqlclient', '-lssl', '-lcrypto']
mysql_config --cflags
['-I/usr/local/mysql/include']
ext_options:
library_dirs: ['/Users/zhaojunhao/Documents/代码仓库/xueranzhonglou/xueran/venv/lib']
libraries: ['mysqlclient']
extra_compile_args: ['-std=c99']
extra_link_args: []
include_dirs: ['/usr/local/mysql/include']
extra_objects: []
define_macros: [('version_info', "(2,1,1,'final',0)"), ('__version__', '2.1.1')]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-3.10
creating build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/_exceptions.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
creating build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
running build_ext
creating build/temp.macosx-10.9-universal2-3.10
creating build/temp.macosx-10.9-universal2-3.10/MySQLdb
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Dversion_info=(2,1,1,'final',0) -D__version__=2.1.1 -I/usr/local/mysql/include -I/Users/zhaojunhao/Documents/代码仓库/xueranzhonglou/xueran/venv/include -I/Library/Frameworks/Python.framewoersions/3.10/include/python3.10 -c MySQLdb/_mysql.c -o build/temp.macosx-10.9-universal2-3.10/MySQLdb/_mysql.o -std=c99
clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g build/temp.macosx-10.9-universal2-3.10/MySQLdb/_mysql.o -L/Users/zhaojunhao/Documents/代码仓库eranzhonglou/xueran/venv/lib -lmysqlclient -o build/lib.macosx-10.9-universal2-3.10/MySQLdb/_mysql.cpython-310-darwin.so
ld: library not found for -lmysqlclient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mysqlclient
Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
error: subprocess-exited-with-error
× Running setup.py install for mysqlclient did not run successfully.
│ exit code: 1
╰─> [44 lines of output]
mysql_config --version
['8.0.30']
mysql_config --libs
['-L/Users/zhaojunhao/Documents/代码仓库/xueranzhonglou/xueran/venv/lib', '-lmysqlclient', '-lssl', '-lcrypto']
mysql_config --cflags
['-I/usr/local/mysql/include']
ext_options:
library_dirs: ['/Users/zhaojunhao/Documents/代码仓库/xueranzhonglou/xueran/venv/lib']
libraries: ['mysqlclient']
extra_compile_args: ['-std=c99']
extra_link_args: []
include_dirs: ['/usr/local/mysql/include']
extra_objects: []
define_macros: [('version_info', "(2,1,1,'final',0)"), ('__version__', '2.1.1')]
running install
/Users/zhaojunhao/Documents/代码仓库/xueranzhonglou/xueran/venv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setu install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-3.10
creating build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/_exceptions.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb
creating build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.9-universal2-3.10/MySQLdb/constants
running build_ext
creating build/temp.macosx-10.9-universal2-3.10
creating build/temp.macosx-10.9-universal2-3.10/MySQLdb
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -Dversion_info=(2,1,1,'final',0) -D__version__=2.1.1 -I/usr/local/mysql/include -I/Users/zhaojunhao/Documents/代码仓库/xueranzhonglou/xueran/venv/include -I/Library/Frameworks/Python.framewoersions/3.10/include/python3.10 -c MySQLdb/_mysql.c -o build/temp.macosx-10.9-universal2-3.10/MySQLdb/_mysql.o -std=c99
clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -g build/temp.macosx-10.9-universal2-3.10/MySQLdb/_mysql.o -L/Users/zhaojunhao/Documents/代码仓库eranzhonglou/xueran/venv/lib -lmysqlclient -o build/lib.macosx-10.9-universal2-3.10/MySQLdb/_mysql.cpython-310-darwin.so
ld: library not found for -lmysqlclient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> mysqlclient
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
求求各位大佬指点下,已经一天了相关推荐
- Python3用selenium和webriver启动chrome闪退报错!求大佬指点!
求问大佬!用Python3新学的准备用默认配置的chrome抓取百度的官网,安装了selenium和webdriver和chromedriver之后,输入程序运行,然后chrome刚打开就闪退,程序报 ...
- c语言键盘连续双击程序,编了个C语言的键盘程序有点问题,请指点下!
编了个C语言的键盘程序有点问题,请指点下! [复制链接] 做了个机械手,想用键盘来控制抓,放物品,现在他显示字符时有点错,高手能帮我在keil里跑下,把我的这个错改下吗?谢谢了!原程序如下:(P2.0 ...
- mesh 协调器 路由器_请TI技术支持和大神指点下,关于zigbee组建mesh路由网络的问题,谢谢!...
1,问题描述: 我搭建了一个Mesh路由网络,网络中包含设备:1个协调器,20几个路由器节点,没有终端节点. 由于在Mesh网络中,如果协调器掉电,路由器会重新维护该原来的网络,协调器上电后网络的PA ...
- php 豆瓣api_想调用豆瓣电影 api,谁开发过整套的 php 开源吗?或者指点下
想调用豆瓣电影api,可是没思路~ 谁开发过整套的php开源吗?或者请前人指点下.多谢啦~ 豆瓣电影api地址: http://developers.douban.com/wiki/?title=mo ...
- unity中请问如何点击一下image(image加了button项)变红色再点击一下按钮变成绿色。一直这么循环变色?急求,望大佬指点emmm。c#代码
unity中请问如何点击一下image(image加了button项)变红色再点击一下按钮变成绿色.一直这么循环变色?急求,望大佬指点emmm.c#代码
- 两路音频合成一路电路_请高手指点下:两路模拟音频信号怎么样才能合成一路再通过喇叭输出...
请高手指点下:两路模拟音频信号怎么样才能合成一路再通过喇叭输出 nino61 Post at 2008/3/31 9:56:16 小弟,刚接触这方面的知识,不太懂,查了好多资料都没有收获, 希望好心人 ...
- 女生学计算机还是英语,我是读理科班的女生,但是数学和英语不好,想读计算机专业,那样读什么好呢?希望哥哥姐姐指点下!十分感谢!...
我是读理科班的女生,但是数学和英语不好,想读计算机专业,那样读什么好呢?希望哥哥姐姐指点下!十分感谢!以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容 ...
- c语言debug小窗口怎么移动,大家指点下VS中调试的监视、内存窗口的技巧
最近在开发的时候调试问题,发现本人的调试技术简直是渣的要死,羞愧难当.监视窗口的变量不是很明显的告诉你,压根就看不懂 ,监视窗口的变量表达式又不会用~ 至于内存窗口...本人也是醉了... 无颜以对 ...
- java计算课程学分绩点,一个简单的计算选修课程绩点的程序,欢迎大家指点下.
一个简单的计算选修课程绩点的程序,欢迎大家指点下. package 选修课程; /** * * @author Administrator */ public class Student { / ...
最新文章
- Ant Design Pro 组件事件绑定 Input onChange
- android fragment概念,android Fragment相关概念简介
- make_heap(),push_heap(),pop_heap(),sort_heap()用法。
- LeetCode 837. 新21点(动态规划)
- VMware与 Device/Credential Guard 不兼容.
- Android应用开发基础篇(13)-----GestureDetector(手势识别)
- jdbc mysql 偶发空指针_JDBC连接执行MySQL存储过程报空指针或权限错误
- 多伦多计算机科学排名,2017加拿大大学专业排名:计算机科学类项目
- 【算法】02 SCE-UA简介及源代码
- 用标签打印软件将Excel中的多列数据合并打印
- python excel 空值_我用Python展示Excel中常用的20个操作
- 如何理解 Java 中的继承?
- 英文单词乱序后还原 c语言,乱序背单词_有谁也用《不背单词》这个软件吗怎么可以改变背单词的顺序有顺序倒序和乱序的_淘题吧...
- 宕机怎么读?服务器宕机是什么意思?
- 李沐等人提出UN-EPT:用于语义分割的统一高效金字塔Transformer
- 有没有开以修改服务器游戏数据,剑网3指尖江湖第二批服务器数据互通啦 来看看有没有你所在的大区...
- uva1203 - Argu
- 如何优雅的阅读DBNet的训练代码
- 微信小程序能用php框架吗,WeiPhp框架在微信小程序后台开发的优势与使用方法
- php5 geoip,php5.2 geoip pecl模块安装
热门文章
- D. Vessels
- WooCommerce SEO:电商平台和商城系统SEO的权威指南
- 20大数据可视化工具测评
- logback--进阶--05--自定义Appenders
- pythonide对比_Python主流IDE对比:Eric VS. PyCharm
- “2022世界杯预测帝”富而喜悦网络走红!网友直呼预测属你神!
- 腾讯会议无法开麦问题解决
- SitePoint Podcast#51:真正的Web设计师获得它
- WordPress Qui-Pure V2.4发布纯文本/图文博客主题正式发布!
- 机器学习第六天 comeon!!!!!!!