WARNING: Can not get binary dependencies for file...

本文记录了使用PyInstaller 3.2在Windows 7 64位系统下将Python 3.5脚本打包成exe时遇到的问题及解决方法。问题主要源于PyInstaller无法获取某些DLL文件的依赖关系。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境:
window7 64bit
python 3.5
pyinstaller 3.2
用pyinstaller 将python文件打包成exe文件的过程中,出现了如下的错误

C:\Users\caoxin\PyInstaller-3.2>python pyinstaller.py --console --onefile main5.
py
249 INFO: PyInstaller: 3.2
249 INFO: Python: 3.5.0
250 INFO: Platform: Windows-7-6.1.7601-SP1
252 INFO: wrote C:\Users\caoxin\PyInstaller-3.2\main5\main5.spec
253 INFO: UPX is not available.
256 INFO: Extending PYTHONPATH with paths
['C:\\Users\\caoxin\\PyInstaller-3.2',
 'C:\\Users\\caoxin\\PyInstaller-3.2\\main5']
256 INFO: checking Analysis
256 INFO: Building Analysis because out00-Analysis.toc is non existent
258 INFO: Initializing module dependency graph...
259 INFO: Initializing module graph hooks...
262 INFO: Analyzing base_library.zip ...
2670 INFO: running Analysis out00-Analysis.toc
2746 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-runtime-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
2815 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-stdio-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
2819 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-heap-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
2829 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-locale-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
2864 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-math-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
3276 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-string-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
3292 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-convert-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
3298 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-conio-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
3305 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-process-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
3315 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-time-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
3319 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-environment-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
3331 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-filesystem-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
3332 INFO: Caching module hooks...
3337 INFO: Analyzing C:\Users\caoxin\PyInstaller-3.2\main5.py
3374 INFO: Loading module hooks...
3375 INFO: Loading module hook "hook-encodings.py"...
3384 INFO: Loading module hook "hook-pydoc.py"...
3384 INFO: Loading module hook "hook-xml.py"...
3602 INFO: Looking for ctypes DLLs
3602 INFO: Analyzing run-time hooks ...
3612 INFO: Looking for dynamic libraries
4173 WARNING: Can not get binary dependencies for file: C:\Windows\system32\api-
ms-win-crt-utility-l1-1-0.dll
Traceback (most recent call last):
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 6
95, in getImports
    return _getImports_pe(pth)
  File "C:\Users\caoxin\PyInstaller-3.2\PyInstaller\depend\bindepend.py", line 1
22, in _getImports_pe
    dll, _ = sym.forwarder.split('.')
TypeError: a bytes-like object is required, not 'str'
4332 INFO: Looking for eggs
4332 INFO: Using Python library C:\Users\caoxin\AppData\Local\Programs\Python\Py
thon35\python35.dll
4334 INFO: Found binding redirects:
[]
4342 INFO: Warnings written to C:\Users\caoxin\PyInstaller-3.2\main5\build\main5
\warnmain5.txt
4355 INFO: checking PYZ
4355 INFO: Building PYZ because out00-PYZ.toc is non existent
4357 INFO: Building PYZ (ZlibArchive) C:\Users\caoxin\PyInstaller-3.2\main5\buil
d\main5\out00-PYZ.pyz
4900 INFO: checking PKG
4901 INFO: Building PKG because out00-PKG.toc is non existent
4901 INFO: Building PKG (CArchive) out00-PKG.pkg
6788 INFO: Bootloader C:\Users\caoxin\PyInstaller-3.2\PyInstaller\bootloader\Win
dows-64bit\run.exe
6789 INFO: checking EXE
6789 INFO: Building EXE because out00-EXE.toc is non existent
6789 INFO: Building EXE from out00-EXE.toc
6789 INFO: Appending archive to EXE C:\Users\caoxin\PyInstaller-3.2\main5\dist\m
ain5.exe

通过google,找到最终的解决方案,原因是pyinstaller 3.2有bug,目前开发版本的pyinstaller解决了此bug,所以用pyinstaller-develop版本就可以将此问题解决。
444975-20170213083952254-1328915694.png

即直接执行:

pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

然后解压该安装包,进入解压的文件夹内执行

python pyinstaller.py --console --onefile main5.py

问题得到修复。

另外值得注意的一点,在Win7 64位的操作系统中,也要装python3.5 32位的安装包。具体原因如下:
444975-20170213092347441-1601640712.png

参考网址:

WARNING: Can not get binary dependencies for file
Why isn't pyinstaller making me an .exe file?

ValueError: too many values to unpack (expected 2) 5549 WARNING: Can not get binary dependencies for file: C:\Program Files\Java\jdk-1.8\bin\api-ms-win-core-processthreads-l1-1-0.dll 5549 WARNING: Reason: too many values to unpack (expected 2) Traceback (most recent call last): File "c:\program files\python\lib\site-packages\PyInstaller\depend\bindepend.py", line 728, in getImports return _getImports_pe(pth) File "c:\program files\python\lib\site-packages\PyInstaller\depend\bindepend.py", line 128, in _getImports_pe dll, _ = forwarder.split('.') ValueError: too many values to unpack (expected 2) 5562 INFO: Analyzing C:\Users\Lenovo\Desktop\昊唐科技\Code\bom_hanlde\main.py 7761 INFO: Processing pre-find module path hook site 7761 INFO: site: retargeting to fake-dir 'c:\\program files\\python\\lib\\site-packages\\PyInstaller\\fake-modules' 10297 INFO: Processing pre-safe import module hook setuptools.extern.six.moves 16408 INFO: Processing module hooks... 16408 INFO: Loading module hook "hook-Crypto.py"... 16427 INFO: Loading module hook "hook-distutils.py"... 16429 INFO: Loading module hook "hook-encodings.py"... 16515 INFO: Loading module hook "hook-lib2to3.py"... 16520 INFO: Loading module hook "hook-lxml.etree.py"... 16521 INFO: Loading module hook "hook-numpy.core.py"... Traceback (most recent call last): File "c:\program files\python\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\program files\python\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Program Files\python\Scripts\pyinstaller.exe\__main__.py", line 7, in <module> File "c:\program files\python\lib\site-packages\PyInstaller\__main__.py", line 114, in run run_build(pyi_config, spec_file, **vars(args)) File "c:\program files\python\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "c:\program
03-14
(venv) PS D:\python学习> python -mpip install --force-reinstall "scipy==1.16.1" Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting scipy==1.16.1 Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c4/94/994369978509f227cba7dfb9e623254d0d5559506fe994aef4bea3ed469c/scipy-1.16.1-cp311-cp311-win_amd64.whl (38.6 MB) Collecting numpy<2.6,>=1.25.2 (from scipy==1.16.1) Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d5/03/0eade211c504bda872a594f045f98ddcc6caef2b7c63610946845e304d3f/numpy-2.3.2-cp311-cp311-win_amd64.whl (13.1 MB) Installing collected packages: numpy, scipy Attempting uninstall: scipy Found existing installation: scipy 1.16.1 Uninstalling scipy-1.16.1: Successfully uninstalled scipy-1.16.1 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. contourpy 1.1.1 requires numpy<2.0,>=1.16; python_version <= "3.11", but you have numpy 2.3.2 which is incompatible. gensim 4.3.3 requires numpy<2.0,>=1.18.5, but you have numpy 2.3.2 which is incompatible. gensim 4.3.3 requires scipy<1.14.0,>=1.7.0, but you have scipy 1.16.1 which is incompatible. pyldavis 3.4.1 requires pandas>=2.0.0, but you have pandas 1.5.3 which is incompatible. Successfully installed numpy-2.3.2 scipy-1.16.1 [notice] A new release of pip is available: 23.2.1 -> 25.2 [notice] To update, run: python.exe -m pip install --upgrade pip (venv) PS D:\python学习> python -mpip uninstall numpy -y # 卸载当前版本 Found existing installation: numpy 2.3.2 Uninstalling numpy-2.3.2: Successfully uninstalled numpy-2.3.2 (venv) PS D:\python学习> python -mpip install "numpy==1.22.4" # 安装兼容版本 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting numpy==1.22.4 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f6/d8/ab692a75f584d13c6542c3994f75def5bce52ded9399f52e230fe402819d/numpy-1.22.4.zip (11.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.5/11.5 MB 12.3 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: numpy Building wheel for numpy (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for numpy (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [198 lines of output] setup.py:66: RuntimeWarning: NumPy 1.22.4 may not yet support Python 3.11. warnings.warn( Running from numpy source directory. Processing numpy/random\_bounded_integers.pxd.in Processing numpy/random\bit_generator.pyx Processing numpy/random\mtrand.pyx Processing numpy/random\_bounded_integers.pyx.in Processing numpy/random\_common.pyx Processing numpy/random\_generator.pyx Processing numpy/random\_mt19937.pyx Processing numpy/random\_pcg64.pyx Processing numpy/random\_philox.pyx Processing numpy/random\_sfc64.pyx Cythonizing sources INFO: blas_opt_info: INFO: blas_armpl_info: INFO: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils INFO: customize MSVCCompiler INFO: libraries armpl_lp64_mp not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: blas_mkl_info: INFO: libraries mkl_rt not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: blis_info: INFO: libraries blis not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: openblas_info: INFO: libraries openblas not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']' INFO: customize GnuFCompiler WARN: Could not locate executable g77 WARN: Could not locate executable f77 INFO: customize IntelVisualFCompiler WARN: Could not locate executable ifort WARN: Could not locate executable ifl INFO: customize AbsoftFCompiler WARN: Could not locate executable f90 INFO: customize CompaqVisualFCompiler WARN: Could not locate executable DF INFO: customize IntelItaniumVisualFCompiler WARN: Could not locate executable efl INFO: customize Gnu95FCompiler WARN: Could not locate executable gfortran WARN: Could not locate executable f95 INFO: customize G95FCompiler WARN: Could not locate executable g95 INFO: customize IntelEM64VisualFCompiler INFO: customize IntelEM64TFCompiler WARN: Could not locate executable efort WARN: Could not locate executable efc INFO: customize PGroupFlangCompiler WARN: Could not locate executable flang WARN: don't know how to compile Fortran code on platform 'nt' INFO: NOT AVAILABLE INFO: INFO: accelerate_info: INFO: NOT AVAILABLE INFO: INFO: atlas_3_10_blas_threads_info: INFO: Setting PTATLAS=ATLAS INFO: libraries tatlas not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: atlas_3_10_blas_info: INFO: libraries satlas not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: atlas_blas_threads_info: INFO: Setting PTATLAS=ATLAS INFO: libraries ptf77blas,ptcblas,atlas not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: atlas_blas_info: INFO: libraries f77blas,cblas,atlas not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: C:\Users\杨博森\AppData\Local\Temp\pip-install-z5f0_lng\numpy_72f2f0feba9a429ab81e825a7137c8e7\numpy\distutils\system_info.py:2077: UserWarning: Optimized (vendor) Blas libraries are not found. Falls back to netlib Blas library which has worse performance. A better performance should be easily gained by switching Blas library. if self._calc_info(blas): INFO: blas_info: INFO: libraries blas not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: C:\Users\杨博森\AppData\Local\Temp\pip-install-z5f0_lng\numpy_72f2f0feba9a429ab81e825a7137c8e7\numpy\distutils\system_info.py:2077: 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. if self._calc_info(blas): INFO: blas_src_info: INFO: NOT AVAILABLE INFO: C:\Users\杨博森\AppData\Local\Temp\pip-install-z5f0_lng\numpy_72f2f0feba9a429ab81e825a7137c8e7\numpy\distutils\system_info.py:2077: 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. if self._calc_info(blas): INFO: NOT AVAILABLE INFO: non-existing path in 'numpy\\distutils': 'site.cfg' INFO: lapack_opt_info: INFO: lapack_armpl_info: INFO: libraries armpl_lp64_mp not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: lapack_mkl_info: INFO: libraries mkl_rt not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: openblas_lapack_info: INFO: libraries openblas not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: openblas_clapack_info: INFO: libraries openblas,lapack not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: flame_info: INFO: libraries flame not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: INFO: atlas_3_10_threads_info: INFO: Setting PTATLAS=ATLAS INFO: libraries tatlas,tatlas not found in D:\python学习\venv\lib INFO: libraries tatlas,tatlas not found in C:\ INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'> INFO: NOT AVAILABLE INFO: INFO: atlas_3_10_info: INFO: libraries satlas,satlas not found in D:\python学习\venv\lib INFO: libraries satlas,satlas not found in C:\ INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'> INFO: NOT AVAILABLE INFO: INFO: atlas_threads_info: INFO: Setting PTATLAS=ATLAS INFO: libraries ptf77blas,ptcblas,atlas not found in D:\python学习\venv\lib INFO: libraries ptf77blas,ptcblas,atlas not found in C:\ INFO: <class 'numpy.distutils.system_info.atlas_threads_info'> INFO: NOT AVAILABLE INFO: INFO: atlas_info: INFO: libraries f77blas,cblas,atlas not found in D:\python学习\venv\lib INFO: libraries f77blas,cblas,atlas not found in C:\ INFO: <class 'numpy.distutils.system_info.atlas_info'> INFO: NOT AVAILABLE INFO: INFO: lapack_info: INFO: libraries lapack not found in ['D:\\python学习\\venv\\lib', 'C:\\'] INFO: NOT AVAILABLE INFO: C:\Users\杨博森\AppData\Local\Temp\pip-install-z5f0_lng\numpy_72f2f0feba9a429ab81e825a7137c8e7\numpy\distutils\system_info.py:1902: 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. return getattr(self, '_calc_info_{}'.format(name))() INFO: lapack_src_info: INFO: NOT AVAILABLE INFO: C:\Users\杨博森\AppData\Local\Temp\pip-install-z5f0_lng\numpy_72f2f0feba9a429ab81e825a7137c8e7\numpy\distutils\system_info.py:1902: 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. return getattr(self, '_calc_info_{}'.format(name))() INFO: NOT AVAILABLE INFO: INFO: numpy_linalg_lapack_lite: INFO: FOUND: INFO: language = c INFO: define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')] INFO: Warning: attempted relative import with no known parent package C:\Users\杨博森\AppData\Local\Temp\pip-build-env-ygs6chf7\overlay\Lib\site-packages\setuptools\_distutils\dist.py:275: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) running bdist_wheel running build running config_cc INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src INFO: build_src INFO: building py_modules sources creating build creating build\src.win-amd64-3.11 creating build\src.win-amd64-3.11\numpy creating build\src.win-amd64-3.11\numpy\distutils INFO: building library "npymath" sources error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects [notice] A new release of pip is available: 23.2.1 -> 25.2 [notice] To update, run: python.exe -m pip install --upgrade pip (venv) PS D:\python学习>
最新发布
08-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值