"python setup.py egg_info" 导致 Spyder 安装 spc 0.3 失败

Spyder fails to install spc 0.3 caused by a "python setup.py egg_info"

我正在尝试通过 Spyder Anaconda 在 Win 64 位平台上安装 SPC。在尝试了 提供的解决方案后,我 运行 ez_setup 但仍然收到以下错误:

pip install spc
Collecting spc
 Using cached spc-0.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "c:\users\....\appdata\local\temp\pip-build-gfpds4\spc\setup.py", line 3, in <module>
from ez_setup import use_setuptools
ImportError: No module named ez_setup

----------------------------------------
 Command "python setup.py egg_info" failed with error code 1 in c:\users\...\appdata\local\temp\pip-build-gfpds4\spc\

首先尝试从 pip 安装 ez_setup

pip install ez_setup

然后安装spc:

pip install spc

我相信作者忘记在 setup.py 中添加 ez_setup 作为安装要求,就像他们为 numpy 所做的那样:

 % sudo pip install ez_setup
Collecting ez-setup
  Downloading ez_setup-0.9.tar.gz
Installing collected packages: ez-setup
  Running setup.py install for ez-setup ... done
Successfully installed ez-setup-0.9
 % sudo pip install spc
Collecting spc
  Using cached spc-0.3.tar.gz
Requirement already satisfied (use --upgrade to upgrade): NumPy in /usr/local/lib/python2.7/dist-packages (from spc)
Installing collected packages: spc
  Running setup.py install for spc ... done
Successfully installed spc-0.3