pycharm搭建Python环境报错:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found

在使用PyCharm搭建Python环境并尝试安装Scipy时遇到错误:numpy.distutils.system_info.NotFoundError,提示找不到lapack/blas资源。错误发生在尝试构建和安装Scipy的过程中,可能的原因是缺少必要的科学计算库或环境配置不正确。解决方案包括检查系统路径,设置正确的环境变量,或者通过安装预编译的二进制包来避免本地编译。

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

解决办法:

问题展示:

问题日志:

Collecting scipy==0.19.1
  Downloading scipy-0.19.1.tar.gz (14.1MB)
Building wheels for collected packages: scipy
  Running setup.py bdist_wheel for scipy: started
  Running setup.py bdist_wheel for scipy: finished with status 'error'
  Complete output from command D:\security\11\graduation\venv\Scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Administrator\\AppData\\Local\\Temp\\pycharm-packaging\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\ADMINI~1\AppData\Local\Temp\tmpzp9zmn8qpip-wheel- --python-tag cp36:
  lapack_opt_info:
  lapack_mkl_info:
    libraries mkl_rt not found in ['D:\\security\\11\\graduation\\venv\\lib', 'C:\\']
    NOT AVAILABLE
 
  openblas_lapack_info:
    libraries openblas not found in ['D:\\security\\11\\graduation\\venv\\lib', 'C:\\']
    NOT AVAILABLE
 
  atlas_3_10_threads_info:
  Setting PTATLAS=ATLAS
  D:\security\11\graduation\venv\lib\site-packages\numpy\distutils\system_info.py:1051: UserWarning: Specified path C:\projects\numpy-wheels\windows-wheel-builder\atlas-builds\atlas-3.11.38-sse2-64\lib is invalid.
    pre_dirs = system_info.get_paths(self, section, key)
  <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
    NOT AVAILABLE
 
  atlas_3_10_info:
  <class 'numpy.distutils.system_info.atlas_3_10_info'>
    NOT AVAILABLE
 
  atlas_threads_info:
  Setting PTATLAS=ATLAS
  <class 'numpy.distutils.system_info.atlas_threads_info'>
    NOT AVAILABLE
 
  atlas_info:
  <class 'numpy.distutils.system_info.atlas_info'>
    NOT AVAILABLE
 
  D:\security\11\graduation\venv\lib\site-packages\numpy\distutils\system_info.py:572: 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()
  lapack_info:
    libraries lapack not found in ['D:\\security\\11\\graduation\\venv\\lib', 'C:\\']
    NOT AVAILABLE
 
  D:\security\11\graduation\venv\lib\site-packages\numpy\distutils\system_info.py:572: 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
  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值