无法pip安装scipy,mlxtend和数学库

时间:2016-12-21 01:50:59

标签: python python-2.7 python-3.x scipy

我在Windows 10上使用python 3.5。我无法安装像scipy,mlxtend和math这样的库。

我已按照此答案安装并升级了setuptools和ez_setup Python pip install gives "Command "python setup.py egg_info" failed with error code 1"

当我尝试pip install scipy和mlxtend时,我收到以下错误:

NotFoundError: no lapack/blas resources found

当我尝试安装数学时,我收到以下错误:

  Using cached Math-0.5.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\raisa\AppData\Local\Temp\pip-build-e23g412r\math\setup.py", line 2, in <module>
    raise RuntimeError("Package 'Math' must not be downloaded from pypi")
RuntimeError: Package 'Math' must not be downloaded from pypi

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\raisa\AppData\Local\Temp\pip-build-e23g412r\math\

1 个答案:

答案 0 :(得分:2)

在Windows上,您需要找到unofficial binaries here并下载您要安装的软件包的相应.whl文件。使用pip安装和升级wheelsetuptools然后执行pip install the_name_of_the_file.whl

总而言之,假设您要安装matplotlib并且.whl文件位于当前目录中...

pip install wheel
pip install --upgrade setuptools
pip install matplotlib‑1.5.3‑cp35‑cp35m‑win32.whl