我似乎无法使用VS代码安装scipy
python-mpip安装scipy 收集垃圾 使用缓存的scipy-1.5.2.tar.gz(25.4 MB) 正在安装生成依赖项。。。完成 获取构建轮子的需求。。。完成 正在准备控制盘元数据。。。错误 错误:命令出错,退出状态为1: 命令:“C:\Users\bundyjas\AppData\Local\Programs\Python\39\Python.exe”C:\Users\bundyjas\AppData\Local\Programs\Python\39\lib\site packages\pip\u vendor\pep517\u in_process.py“为构建轮准备元数据”C:\Users\bundyjas\AppData\Local\Temp\tmpmkxabgff” cwd:C:\Users\bundyjas\AppData\Local\Temp\pip-install-4lff1348\scipy 完整输出(195行): setup.py:460:UserWarning:unrecogned setuptools命令('dist_info--egg base C:\Users\bundyjas\AppData\Local\Temp\pip-modern-metadata-j_sx_haa'),继续生成Cython源并扩展模板 warnings.warn(“无法识别的setuptools命令({}”),正在继续” 从SciPy源目录运行。 lapack_opt_信息: lapack_mkl_信息: 在numpy.distutils中没有名为“numpy.distutils.\u msvccompiler”的模块;正在从distutils中尝试 自定义MSVCCompiler 在['C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib','C:\','C:\Users\bundyjas\AppData\Local\Programs\Python39\libs'中找不到库mkl\rt] 不可用
openblas_lapack_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries openblas not found in ['C:\\Users\\bundyjas\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\bundyjas\\AppData\\Local\\Programs\\Python\\Python39\\libs']
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem',
“intelem”,“flang']” 定制gnuff编译器 找不到可执行文件g77 找不到可执行文件f77 自定义IntelVisualF编译器 找不到可执行ifort 找不到可执行ifl 定制绝对FTFCompiler 找不到可执行文件f90 自定义CompaqVisualCompiler 找不到可执行文件DF 自定义IntelItaniumVisualFCompiler 找不到可执行efl 定制GNU95F编译器 找不到可执行文件gfortran 找不到可执行文件f95 定制G95FCompiler 找不到可执行文件g95 自定义Intelem64VisualCompiler 自定义Intelem64TF编译器 找不到可执行文件efort 找不到可执行efc 自定义PGroupFlangCompiler 找不到可执行法兰 不知道如何在“nt”平台上编译Fortran代码 不可用
openblas_clapack_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries openblas,lapack not found in ['C:\\Users\\bundyjas\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\bundyjas\\AppData\\Local\\Programs\\Python\\Python39\\libs']
NOT AVAILABLE
flame_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries flame not found in ['C:\\Users\\bundyjas\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\bundyjas\\AppData\\Local\\Programs\\Python\\Python39\\libs']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\libs
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas,satlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas,satlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas,satlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\libs
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
lapack_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack not found in ['C:\\Users\\bundyjas\\AppData\\Local\\Programs\\Python\\Python39\\lib', 'C:\\', 'C:\\Users\\bundyjas\\AppData\\Local\\Programs\\Python\\Python39\\libs']
NOT AVAILABLE
C:\Users\bundyjas\AppData\Local\Temp\pip-build-env-eitrbrks\overlay\Lib\site-packages\numpy\distutils\system_info.py:1712: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
if getattr(self, '_calc_info_{}'.format(lapack))():
lapack_src_info:
NOT AVAILABLE
C:\Users\bundyjas\AppData\Local\Temp\pip-build-env-eitrbrks\overlay\Lib\site-packages\numpy\distutils\system_info.py:1712: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
if getattr(self, '_calc_info_{}'.format(lapack))():
NOT AVAILABLE
Traceback (most recent call last):
File "C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 280, in <module>
main()
File "C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 133, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "C:\Users\bundyjas\AppData\Local\Temp\pip-build-env-eitrbrks\overlay\Lib\site-packages\setuptools\build_meta.py", line 161, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\bundyjas\AppData\Local\Temp\pip-build-env-eitrbrks\overlay\Lib\site-packages\setuptools\build_meta.py", line 253, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\bundyjas\AppData\Local\Temp\pip-build-env-eitrbrks\overlay\Lib\site-packages\setuptools\build_meta.py", line 145, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 583, in <module>
setup_package()
File "setup.py", line 579, in setup_package
setup(**metadata)
File "C:\Users\bundyjas\AppData\Local\Temp\pip-build-env-eitrbrks\overlay\Lib\site-packages\numpy\distutils\core.py", line 137, in setup
config = configuration()
File "setup.py", line 477, in configuration
raise NotFoundError(msg)
numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
----------------------------------------
错误:命令出错,退出状态为1:“C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\Python.exe”“C:\Users\bundyjas\AppData\Local\Programs\Python\Python39\lib\site packages\pip\U vendor\pep517\U in\U process.py”为构建轮准备元数据“C:\Users\bundyjas\AppData\Local\Temp\tmpmkxabgvf”检查日志以获取完整的命令输出把
从源代码安装scipy非常苛刻,不建议这样做,尤其是在windows上。您的日志已经表明需要C/C++/Fortran编译器,后者用于OpenBLAS。(在1.0之前,有好几年没有正式的二进制版本!)
从源代码安装时,并没有找到合适的预制二进制文件,就像您的情况一样
原因是:您使用的是Python3.9,它太新了(10月5日:现在<;2周)。目前还没有正式的预先制作的scipy版本Hint
选择Python<;=3.8. (相信我:您不想从windows上的源代码安装)
(这与VS代码完全无关/正交)
相关问题 更多 >
编程相关推荐