我想为我的虚拟环境安装scipy。安装Anaconda时我有scipy,但我的虚拟环境没有包。我试过pip install scipy并导致错误。
Running from scipy source directory.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-build-nwih6b4a\scipy\setup.py", line 415, in <module>
setup_package()
File "C:\Users\user\AppData\Local\Temp\pip-build-nwih6b4a\scipy\setup.py", line 411, in setup_package
setup(**metadata)
File "c:\users\user\pmengine\pmenv\lib\site-packages\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "C:\Users\user\AppData\Local\Temp\pip-build-nwih6b4a\scipy\setup.py", line 335, in configuration
config.add_subpackage('scipy')
File "c:\users\user\pmengine\pmenv\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "c:\users\user\pmengine\pmenv\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "c:\users\user\pmengine\pmenv\lib\site-packages\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\setup.py", line 15, in configuration
config.add_subpackage('linalg')
File "c:\users\user\pmengine\pmenv\lib\site-packages\numpy\distutils\misc_util.py", line 1001, in add_subpackage
caller_level = 2)
File "c:\users\user\pmengine\pmenv\lib\site-packages\numpy\distutils\misc_util.py", line 970, in get_subpackage
caller_level = caller_level + 1)
File "c:\users\user\pmengine\pmenv\lib\site-packages\numpy\distutils\misc_util.py", line 907, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "scipy\linalg\setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
----------------------------------------
Command "c:\users\user\pmengine\pmenv\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\user\\AppData\\Local\\Temp\\pip-build-nwih6b4a\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\user\AppData\Local\Temp\pip-qdxr5rtc-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\user\pmengine\pmenv\include\site\python3.5\scipy" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-build-nwih6b4a\scipy\
&#13;
我尝试在我的虚拟环境文件夹中下载scipy-0.18.1-cp36-cp36m-win_amd64.whl并执行
pip install scipy-0.18.1-cp36-cp36m-win_amd64
&#13;
但它仍然返回
(pmenv) C:\Users\user\pmengine\pmenv>pip install scipy-0.18.1-cp36-cp36m-win_amd64.whl
scipy-0.18.1-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
&#13;
请帮忙!