Python中文
首页
教程
问答
标签
搜索
登录
注册
pip3 install mysqlpython在M上失败
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>类似的问题有很多,但都有不同的解决方法。他们都不为我工作。在</p> <p>我试图安装Mysql连接器fordjango项目,但它给出了以下错误。在</p> <p>首先,我安装了Django的最新版本。 然后用下面的代码安装mysql</p> <p><code>brew install mysql</code>-工作很好。在</p> <p>这就是我正在安装连接器的代码。在</p> <p><code>pip3 mysql-python</code>。以前使用过<code>easy_install mysql-python</code>,但它们都不起作用。在</p> <p>Python版本:3.8.0</p> <p>Django版本:2.2.7</p> <p>MySql版本:8.0.18</p> <p><code>pip3 mysql-python</code>给出以下错误:</p> <p><code>Collecting mysql-python Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/6n/d2t3k0sd4l1d78bgk_ll5psm0000gn/T/pip-install-4nmg9waj/mysql-python/setup.py'"'"'; __file__='"'"'/private/var/folders/6n/d2t3k0sd4l1d78bgk_ll5psm0000gn/T/pip-install-4nmg9waj/mysql-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/6n/d2t3k0sd4l1d78bgk_ll5psm0000gn/T/pip-install-4nmg9waj/mysql-python/pip-egg-info cwd: /private/var/folders/6n/d2t3k0sd4l1d78bgk_ll5psm0000gn/T/pip-install-4nmg9waj/mysql-python/ Complete output (7 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/6n/d2t3k0sd4l1d78bgk_ll5psm0000gn/T/pip-install-4nmg9waj/mysql-python/setup.py", line 13, in <module> from setup_posix import get_config File "/private/var/folders/6n/d2t3k0sd4l1d78bgk_ll5psm0000gn/T/pip-install-4nmg9waj/mysql-python/setup_posix.py", line 2, in <module> from ConfigParser import SafeConfigParser ModuleNotFoundError: No module named 'ConfigParser' ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. </code></p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>这个命令对我有用</p> <p><code>pip3 install mysqlclient==1.4.2.post1</code></p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
文本导入时标题行中的特殊字符
7 回答
文本小部件:在没有输入时更新并在循环后保持空闲
3 回答
文本小部件tkin
1 回答
文本小部件tkinter中的标签更改或文本外观更改是否有撤消功能?
8 回答
文本小部件tkinter复制图像选项
9 回答
文本小部件上的Python Tkinter ttk滚动条未缩放
7 回答
文本小部件上的滚动条可能需要根据制表符ord显示前进行滚动
5 回答
文本小部件不显示lis中的内容
10 回答
文本小部件不显示Unicode字符
10 回答
文本小部件中写入的行间距
2 回答
文本小部件中的文本作为变量
8 回答
文本小部件中的滚动条仅显示在底部
1 回答
文本小部件中的选项卡键空间计数
1 回答
文本小部件作为Lis
4 回答
文本小部件在主框架中扩展列宽
8 回答
文本小部件未使用删除功能清除
5 回答
文本小部件滚动动画(Tkinter、Python)
9 回答
文本居中。格式正确吗?
9 回答
文本差分算法
1 回答
文本已知时音频文件中的单词索引
5 回答