尝试安装时Django的requirements.txt我在尝试安装时出现以下错误MYSQL-python的的Django的:mysql-python的安装误差
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/abercrrl/.virtualenvs/django_at/build/MySQL-python/setup.py", line 7, in <module>
use_setuptools()
File "distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "distribute_setup.py", line 125, in _do_download
_build_egg(egg, tarball, to_dir)
File "distribute_setup.py", line 116, in _build_egg
raise IOError('Could not build the egg.')
IOError: Could not build the egg.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/abercrrl/.virtualenvs/django_at/build/MySQL-python
Storing debug log for failure in /home/abercrrl/.pip/pip.log
注意,我曾尝试:
pip install --upgrade setuptools
setuptools的是已经达到最新
编辑:
我修改了下面的命令,以配合我的位置:
echo "mysql_config = /usr/bin/mysql_config" >> ~/.virtualenvs/django_at/build/MySQL-python/site.cfg
我也必须创建构建和MySQL-python的目录,这个工作。该命令运行良好,但现在我现在正在这个: https://gist.github.com/rlabercrombie/8725074
您应该提供更多信息,并粘贴文件/home/abercrrl/.pip/pip.log。你有没有尝试手动执行'pip install MySQL-python'? – caesarsol
[这个答案](http://stackoverflow.com/a/17756333/3219121)有解决这个问题。 – matagus
@caesarsol整个文件太大而无法在这里发布。有没有一种好的方法来发布大量的代码?手动pip安装MySQL-python产生相同的错误 – richard008