在在 Virtualenv 虚拟环境下 安装 mysql-python 1.2.4 失败

A_Chrismas_Carol 2014-04-12 09:15:01
在 Virtualenv 虚拟环境下 Pip install MySQL-python==1.2.4
报错如下:
/Users/carol/Documents/work/parttime/venv/build/MySQL-python/distribute-0.6.28-py2.7.egg
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/Users/carol/Documents/work/parttime/venv/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.

Extracting in /var/folders/r1/jth5gykj6f5cmynf95qjph2c0000gn/T/tmp9rZUm3

Now working in /var/folders/r1/jth5gykj6f5cmynf95qjph2c0000gn/T/tmp9rZUm3/distribute-0.6.28

Building a Distribute egg in /Users/carol/Documents/work/parttime/venv/build/MySQL-python

/Users/carol/Documents/work/parttime/venv/build/MySQL-python/distribute-0.6.28-py2.7.egg

Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/Users/carol/Documents/work/parttime/venv/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.


leaning up...
Removing temporary dir /Users/carol/Documents/work/parttime/venv/build...
Command python setup.py egg_info failed with error code 1 in /Users/carol/Documents/work/parttime/venv/build/MySQL-python
Exception information:
Traceback (most recent call last):
File "/Users/carol/Documents/work/parttime/venv/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Users/carol/Documents/work/parttime/venv/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/carol/Documents/work/parttime/venv/lib/python2.7/site-packages/pip/req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "/Users/carol/Documents/work/parttime/venv/lib/python2.7/site-packages/pip/req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "/Users/carol/Documents/work/parttime/venv/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /Users/carol/Documents/work/parttime/venv/build/MySQL-python


新手,完全不懂是怎么回事。。。
...全文
359 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ahpuzy 2015-08-27
  • 打赏
  • 举报
回复
这个问题怎么解决???我也遇到了,求解答

10,607

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧