Python 3.x python中的Scipy错误:3.8-alpine3.11-未找到lapack/blas资源
我正在尝试用python:3.8-alpine3.11安装scipy,但是得到了“没有找到lapack/blas资源”。对于alpien3.10来说,它工作得很好Python 3.x python中的Scipy错误:3.8-alpine3.11-未找到lapack/blas资源,python-3.x,alpine,Python 3.x,Alpine,我正在尝试用python:3.8-alpine3.11安装scipy,但是得到了“没有找到lapack/blas资源”。对于alpien3.10来说,它工作得很好 Below are the logs: Step 5/28 : RUN pip3 install numpy==1.14.3 ---> Using cache ---> f77d037c9008 Step 6/28 : RUN pip3 install scipy==1.3.1 ---> Ru
Below are the logs:
Step 5/28 : RUN pip3 install numpy==1.14.3
---> Using cache
---> f77d037c9008
Step 6/28 : RUN pip3 install scipy==1.3.1
---> Running in 86d118b54acc
Looking in indexes: simple
Collecting scipy==1.3.1
Downloading scipy-1.3.1.tar.gz (23.6 MB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
获取构建控制盘的需求:已开始
获取构建控制盘的要求:完成状态为“完成”
准备控制盘元数据:已开始
准备控制盘元数据:已完成,状态为“错误”
错误:命令出错,退出状态为1:
命令:/usr/bin/python3.8/usr/lib/python3.8/site-packages/pip//u vendor/pep517//u in\u process.py为构建轮准备元数据/tmp/tmp1qlw5c3z
cwd:/tmp/pip-install-cz2mzto6/scipy
完整输出(150行):
lapack_opt_信息:
lapack_mkl_信息:
自定义UnixC编译器
在['/usr/local/lib'、'/usr/lib'、'/usr/lib/'中找不到库mkl_rt]
不可用
openblas_lapack_info:
customize UnixCCompiler
customize UnixCCompiler
customize UnixCCompiler
C compiler: gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC
creating /tmp/tmphgxupjii/tmp
creating /tmp/tmphgxupjii/tmp/tmphgxupjii
compile options: '-c'
gcc: /tmp/tmphgxupjii/source.c
gcc /tmp/tmphgxupjii/tmp/tmphgxupjii/source.o -L/usr/lib -lopenblas -o /tmp/tmphgxupjii/a.out
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/tmphgxupjii/tmp/tmphgxupjii/source.o: in function `main':
/tmp/tmphgxupjii/source.c:4: undefined reference to `zungqr_'
collect2: error: ld returned 1 exit status
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /tmp/tmphgxupjii/tmp/tmphgxupjii/source.o: in function `main':
/tmp/tmphgxupjii/source.c:4: undefined reference to `zungqr_'
collect2: error: ld returned 1 exit status
NOT AVAILABLE
openblas_clapack_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries tatlas,tatlas not found in /usr/lib/
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
customize UnixCCompiler
libraries satlas,satlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries satlas,satlas not found in /usr/lib/
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/local/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/local/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in /usr/lib/
customize UnixCCompiler
libraries lapack_atlas not found in /usr/lib/
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
customize UnixCCompiler
libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
setup.py:386: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /tmp/pip-modern-metadata-oeuez3h_'), proceeding with generating Cython sources and expanding templates
warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
Running from scipy source directory.
/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site-packages/numpy/distutils/system_info.py:624: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site-packages/numpy/distutils/system_info.py:624: 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.
self.calc_info()
/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site-packages/numpy/distutils/system_info.py:624: 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.
self.calc_info()
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 110, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 156, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 242, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 505, in <module>
setup_package()
File "setup.py", line 501, in setup_package
setup(**metadata)
File "/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site-packages/numpy/distutils/core.py", line 135, in setup
config = configuration()
File "setup.py", line 403, in configuration
raise NotFoundError(msg)
numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
----------------------------------------
openblas\u lapack\u信息:
自定义UnixC编译器
自定义UnixC编译器
自定义UnixC编译器
C编译器:gcc-Wno unused result-Wsign compare-DNDEBUG-g-fwrapv-O3-Wall-Os-fomit frame pointer-g-Os-fomit frame pointer-g-Os-fomit frame pointer-g-DTHREAD_STACK_SIZE=0x100000-fPIC
创建/tmp/tmphgxupjii/tmp
创建/tmp/tmphgxupjii/tmp/tmphgxupjii
编译选项:'-c'
gcc:/tmp/tmphgxupjii/source.c
gcc/tmp/tmphgxupjii/tmp/tmphgxupjii/source.o-L/usr/lib-lopenblas-o/tmp/tmphgxupjii/a.out
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../../../../x86_64-alpine-linux-musl/bin/ld:/tmp/tmphgxupjii/tmp/tmphgxupjii/source.o:在函数“main”中:
/tmp/tmphgxupjii/source.c:4:未定义对“zungqr”的引用
collect2:错误:ld返回了1个退出状态
/usr/lib/gcc/x86_64-alpine-linux-musl/9.2.0/../../../../../../../x86_64-alpine-linux-musl/bin/ld:/tmp/tmphgxupjii/tmp/tmphgxupjii/source.o:在函数“main”中:
/tmp/tmphgxupjii/source.c:4:未定义对“zungqr”的引用
collect2:错误:ld返回了1个退出状态
无法使用的
openblas_clapack_信息:
自定义UnixC编译器
自定义UnixC编译器
在['/usr/local/lib','/usr/lib','/usr/lib','/usr/lib/']
无法使用的
atlas_3_10_线程信息:
设置PTATLAS=ATLAS
自定义UnixC编译器
库tatlas,在/usr/local/lib中找不到tatlas
自定义UnixC编译器
在/usr/local/lib中找不到库lapack_atlas
自定义UnixC编译器
库tatlas,在/usr/lib中找不到tatlas
自定义UnixC编译器
在/usr/lib中找不到库lapack_atlas
自定义UnixC编译器
库tatlas,在/usr/lib中找不到tatlas/
自定义UnixC编译器
在/usr/lib中找不到库lapack_atlas/
无法使用的
atlas_3_10_信息:
自定义UnixC编译器
库satlas,在/usr/local/lib中找不到satlas
自定义UnixC编译器
在/usr/local/lib中找不到库lapack_atlas
自定义UnixC编译器
库satla,在/usr/lib中找不到satla
自定义UnixC编译器
在/usr/lib中找不到库lapack_atlas
自定义UnixC编译器
库satla,在/usr/lib中找不到satla/
自定义UnixC编译器
在/usr/lib中找不到库lapack_atlas/
无法使用的
atlas_线程_信息:
设置PTATLAS=ATLAS
自定义UnixC编译器
在/usr/local/lib中找不到库ptf77blas、ptcblas、atlas
自定义UnixC编译器
在/usr/local/lib中找不到库lapack_atlas
自定义UnixC编译器
在/usr/lib中找不到库ptf77blas、ptcblas和atlas
自定义UnixC编译器
在/usr/lib中找不到库lapack_atlas
自定义UnixC编译器
在/usr/lib中找不到库ptf77blas、ptcblas和atlas/
自定义UnixC编译器
在/usr/lib中找不到库lapack_atlas/
无法使用的
atlas_信息:
自定义UnixC编译器
在/usr/local/lib中找不到f77blas、cblas和atlas库
自定义UnixC编译器
在/usr/local/lib中找不到库lapack_atlas
自定义UnixC编译器
在/usr/lib中找不到f77blas、cblas和atlas库
自定义UnixC编译器
在/usr/lib中找不到库lapack_atlas
自定义UnixC编译器
在/usr/lib中找不到f77blas、cblas和atlas库/
自定义UnixC编译器
在/usr/lib中找不到库lapack_atlas/
无法使用的
lapack_信息:
自定义UnixC编译器
在['/usr/local/lib'、'/usr/lib'、'/usr/lib/']中找不到库lapack
无法使用的
lapack_src_信息:
无法使用的
无法使用的
setup.py:386:UserWarning:无法识别的setuptools命令('dist_info--egg base/tmp/pip-modern-metadata-oeuez3h_'),继续生成Cython源并展开模板
warnings.warn(“无法识别的setuptools命令({}”),正在继续”
从scipy源目录运行。
/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site packages/numpy/distutils/system_info.py:624:UserWarning:
地图集(http://math-atlas.sourceforge.net/)找不到库。
可以在中指定要搜索库的目录
numpy/distutils/site.cfg文件(第[atlas]节)或通过设置
ATLAS环境变量。
self.calc_info()
/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site packages/numpy/distutils/system_info.py:624:UserWarning:
拉帕克(http://www.netlib.org/lapack/)找不到库。
可以在中指定要搜索库的目录
numpy/distutils/site.cfg文件(第[lapack]节)或通过设置
LAPACK环境变量。
self.calc_info()
/tmp/pip-build-env-h5qyzy7s/overlay/lib/python3.8/site packages/numpy/distutils/system_info.py:624:UserWarning:
拉帕克(http://www.netlib.org/lapack/)找不到来源。
可以在中指定要搜索源的目录
numpy/distutils/site.cfg文件(第[lapack\u src]节)或通过设置
LAPACK_SRC环境变量。
self.calc_info()
回溯(最近一次呼叫最后一次):
文件“/usr/lib/python3.8/site packages/pip/_vendor/pep517/_in_process.py”,第257行,在
main()
文件“/usr/lib/python3.8/site packages/pip/_vendor/pep517/_in_process.py”,第240行,主文件
json_out['return_val']=hook(**hook_输入['kwargs'])
菲尔