我在 ubuntu 12.04 下运行 python 2.7。我正在尝试使用 pip 安装 spyder 但收到错误消息:
错误:无效命令“egg_info”
命令 python setup.py egg_info 失败,错误代码 1
我查看了其他帖子,建议我安装分发。但是我在使用 pip 安装分发时收到相同的错误消息当我尝试升级 scipy 或使用 pip 安装 spyder 时,我收到以下消息:
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 980, in prepare_files
req_to_install.run_egg_info()
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 216, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1
我是 python、pip 和 ubuntu 的新手,这使得这变得更加困难。提前致谢。