如何解决为 numpy 运行 setup.py install ... error
错误:命令出错,退出状态为 1:
命令:'c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\scripts\python.exe'
-u -c '导入系统、设置工具、标记化; sys.argv[0] = '"'"'C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\setup.py'"'"';
file='"'"'C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\setup.py'"'"';f=getattr(标记化,
'"'"'open'"'"',open)(file);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,file,'"'"'exec'"'"'))'
安装--记录
'C:\Users\Whynew.in\AppData\Local\Temp\pip-record-6n2wwrw7\install-record.txt'
--single-version-externally-managed --compile --install-headers 'c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\include\site\python3.8\numpy'
cwd: C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783
完整输出(292 行):
从 numpy 源目录运行。
Note: if you need reliable uninstall behavior,then install
with pip instead of using `setup.py install`:
- `pip install .` (from a git repo or downloaded source
release)
- `pip install numpy` (last NumPy release on PyPi)
blas_opt_info:
blas_mkl_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries mkl_rt not found in ['c:\\users\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
blis_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries blis not found in ['c:\\users\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
openblas_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\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
get_default_fcompiler: matching types: '['gnu','intelv','absoft','compaqv','intelev','gnu95','g95','intelvem','intelem','flang']'
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Could not locate executable DF
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize G95FCompiler
Could not locate executable g95
customize IntelEM64VisualFCompiler
customize IntelEM64TFCompiler
Could not locate executable efort
Could not locate executable efc
customize PGroupFlangCompiler
Could not locate executable flang
don't know how to compile Fortran code on platform 'nt'
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas not found in ['c:\\users\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
atlas_3_10_blas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas not found in ['c:\\users\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['c:\\users\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
atlas_blas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,'C:\\']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\system_info.py:639: 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()
blas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries blas not found in ['c:\\users\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\system_info.py:639: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
self.calc_info()
blas_src_info:
NOT AVAILABLE
C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\system_info.py:639: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
self.calc_info()
NOT AVAILABLE
'svnversion' is not recognized as an internal or external command,operable program or batch file.
non-existing path in 'numpy\\distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries mkl_rt not found in ['c:\\users\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
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\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
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\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
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\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas,tatlas not found in c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\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:\
<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\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas,satlas not found in c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\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:\
<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\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,atlas not found in c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\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,atlas not found in C:\
<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\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,atlas not found in c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\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,atlas not found in C:\
<class 'numpy.distutils.system_info.atlas_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\\whynew.in\\desktop\\mimothi\\chatbotwithrasa2.0\\myvenv\\lib','C:\\']
NOT AVAILABLE
C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\system_info.py:639: 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()
lapack_src_info:
NOT AVAILABLE
C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\system_info.py:639: 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()
NOT AVAILABLE
C:\python38\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc,config,build_clib,build_ext,build commands --compiler options
running config_fc
unifing config_fc,build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Inumpy\core\src\common -Inumpy\core\src -Inumpy\core -Inumpy\core\src\npymath -Inumpy\core\src\multiarray -Inumpy\core\src\umath -Inumpy\core\src\npysort -Ic:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\include -IC:\python38\include -IC:\python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include /Tc_configtest.c /Fo_configtest.obj
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /MANIFEST:EMBED,ID=1 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\lib\x64 _configtest.obj /OUT:_configtest.exe
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
failure.
removing: _configtest.c _configtest.obj _configtest.obj.d
Traceback (most recent call last):
File "<string>",line 1,in <module>
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\setup.py",line 419,in <module>
setup_package()
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\setup.py",line 411,in setup_package
setup(**metadata)
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\core.py",line 171,in setup
return old_setup(**new_attr)
File "c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\lib\site-packages\setuptools\__init__.py",line 165,in setup
return distutils.core.setup(**attrs)
File "C:\python38\lib\distutils\core.py",line 148,in setup
dist.run_commands()
File "C:\python38\lib\distutils\dist.py",line 966,in run_commands
self.run_command(cmd)
File "C:\python38\lib\distutils\dist.py",line 985,in run_command
cmd_obj.run()
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\command\install.py",line 62,in run
r = self.setuptools_run()
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\command\install.py",line 36,in setuptools_run
return distutils_install.run(self)
File "C:\python38\lib\distutils\command\install.py",line 545,in run
self.run_command('build')
File "C:\python38\lib\distutils\cmd.py",line 313,in run_command
self.distribution.run_command(command)
File "C:\python38\lib\distutils\dist.py",in run_command
cmd_obj.run()
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\command\build.py",line 47,in run
old_build.run(self)
File "C:\python38\lib\distutils\command\build.py",line 135,in run
self.run_command(cmd_name)
File "C:\python38\lib\distutils\cmd.py",in run_command
cmd_obj.run()
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\command\build_src.py",in run
self.build_sources()
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\command\build_src.py",line 159,in build_sources
self.build_library_sources(*libname_info)
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\command\build_src.py",line 292,in build_library_sources
sources = self.generate_sources(sources,(lib_name,build_info))
File "C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\numpy\distutils\command\build_src.py",line 375,in generate_sources
source = func(extension,build_dir)
File "numpy\core\setup.py",line 667,in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
----------------------------------------
错误:命令出错,退出状态为 1: 'c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\scripts\python.exe' -u -c '导入系统、设置工具、标记化; sys.argv[0] = '"'"'C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\setup.py'"'"'; file='"'"'C:\Users\Whynew.in\AppData\Local\Temp\pip-install-xndamx8x\numpy_56243607a23e49aeb7757ba20bb8a783\setup.py'"'"';f=getattr(标记化, '"'"'open'"'"','"'"'exec'"'"'))' 安装--记录 'C:\Users\Whynew.in\AppData\Local\Temp\pip-record-6n2wwrw7\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\whynew.in\desktop\mimothi\chatbotwithrasa2.0\myvenv\include\site\python3.8\numpy' 检查日志以获取完整的命令输出。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。