我在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"
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\
答案 0 :(得分:2)
在Windows上,您需要找到unofficial binaries here并下载您要安装的软件包的相应.whl
文件。使用pip
安装和升级wheel
和setuptools
然后执行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