- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我看到了与我的类似问题的答案,但没有一个答案对我有帮助。我仍然有同样的问题。如果重复,我很抱歉,但其他答案对我没有帮助。
我被 Django 中的一个项目困住了,我必须在其中安装 MySQL-python。当我运行 pip install MySQL-Python
时,我得到了这个错误:
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-Ue6URf/MySQL-Python/
我按照此处的一些答案中的建议使用了 brew,但根本没有帮助。我正在使用带有最新 Python3 和最新 Django 版本的 Mac 机器。我有 MampPro 最新版本,我正在使用 MySQL 服务。
我正在分享安装的全部输出:
Collecting MySQL-Python
Downloading MySQL-python-1.2.5.zip (108kB)
100% |################################| 112kB 561kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-build-Ue6URf/MySQL-Python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 53, in get_config
libraries = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("l")) ]
File "setup_posix.py", line 8, in dequote
if s[0] in "\"'" and s[0] == s[-1]:
IndexError: string index out of range
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-Ue6URf/MySQL-Python/
最佳答案
我解决了我的问题,感谢 StackOverflow 中的这篇帖子 answer for PIP install fail
我必须修改我的 mysql_config 文件并执行此答案中描述的导出部分。之后,我可以通过 pip install 再次安装 ...
关于Python:如何解决 python setup.py egg_info failed with error code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45772402/
我最近升级了 pip,它破坏了一些东西。 我尝试运行这个: sudo pip install -U ipython pyzmq Requirement already up-to-da
我正在尝试在我的 Ubuntu 14.04 LTS 服务器上安装 Discord 机器人。 但是,我不断收到 egg_info 失败。这方面有很多线索,我知道。我已经尝试了在这些线程中找到的所有“解决
您是否将 foo.egg_info 目录保留在版本控制中? 这里有一个例子,在 VC 中使用它会很好: pip install -e foo 其他人添加了一个新的 EntryPoint (pkg_re
我正在尝试通过 pip 在 ubuntu 13.04 上安装 mitmproxy,但每次我遇到此错误时:“命令 python setup.py egg_info failed with error c
尝试在Python 3.6.0上使用pip3安装mysqlclient $ pip3 install mysqlclient Collecting mysqlclient Using cached
我发现最近在尝试安装 Python 时经常出现这种情况。使用 pip 打包,我收到以下错误。 我在网上找到了一个引用,必须使用下载目录中的“python2 setup.py install”,并且确实
我在 colab 工作。我想为我的项目安装 pysal 模块。我收到以下错误。 ERROR: Command errored out with exit status 1: python setup.
我正在尝试在 Ubuntu 18.04 上安装 Apache Airflow: pip install apache-airflow Collecting apache-airflow Using
当我尝试推送 Heroku 时,出现此错误: remote: This backport is for Python 2.7 only. remote: r
我有一个在 Linux 上运行 Python 3.4.2 的 Raspberry Pi。当我尝试安装 Thingspeak 时执行以下命令: pip install thingspeak 我收到此错误
我已经将我的 Python 2.7.x 更新到 3.6,但当我尝试安装任何包时仍然收到此消息。示例:Flask、Kivy.. Command "python setup.py egg_info" fa
无论我尝试安装哪个包,我都会收到此错误: error: invalid command 'egg_info' ---------------------------------------- Clea
每次我尝试部署到 Heroku 时,我都会收到一个类似于这个问题 ( Python pip install fails: invalid command egg_info ) 的错误,我该如何解决这个
除了 Mac OSX 自带的 Python 版本之外,我最近还从他们的网站下载了 python。这是我开始在使用 pip 安装软件包时遇到问题。 sudo pip install -vvv pygoo
当尝试安装flask-mysql时,我收到以下错误消息: Command "python setup.py egg_info" failed with error code 1 in /private
我想安装rpy2,然后安装anaconda和spyder以使用python。 我尝试过这个命令 py -m pip install rpy2 但它给了我这个错误 Command "python set
我正在尝试使用命令在 mac 中安装 Airflow pip install apache-airflow 出现错误 "python setup.py egg_info" failed with er
我最近获得了 python 3.6,并且正在安装 python 软件包。到目前为止,请求已经成功,但是对于 pygame,我收到错误: WARNING, No "Setup" File Exists
Python 新手,但我安装了 v.3.6.3,并且我正在尝试安装 api from github 。我在命令行中输入“pip installendingclub”并收到错误消息: "Command
运行后出现奇怪的错误 $ pip 安装 mysql-python 有没有人见过这样的“egg_info”无效的错误? 我正在运行 OSX mountain lion Downloading/unpac
我是一名优秀的程序员,十分优秀!