求助:pypy3 -m pip install sklearn 出错,MAC下,谢谢

凤晓飞扬 2019-09-18 07:17:49
$ pypy3 -m pip install sklearn
Collecting sklearn
Collecting scikit-learn (from sklearn)
......
Building wheel for scipy (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/pypy3 /usr/local/Cellar/pypy3/7.1.1_1/libexec/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/tmpn6kd9u1d
cwd: /private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scipy
Complete output (742 lines):
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

openblas_lapack_info:
libraries openblas not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

system_info:
NOT AVAILABLE

atlas_3_10_threads_info:
......
^~~~~~~~~
1 error generated.
/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/tmp8m8tikwt/source.c:1:10: fatal error: 'cblas.h' file not found
#include <cblas.h>
^~~~~~~~~
1 error generated.
FOUND:
libraries = ['blas', 'blas']
library_dirs = ['/usr/lib']
include_dirs = ['/usr/local/include', '/usr/include', '/usr/local/Cellar/pypy3/7.1.1_1/libexec/include']

FOUND:
define_macros = [('NO_ATLAS_INFO', 1)]
libraries = ['lapack', 'lapack', 'blas', 'blas']
library_dirs = ['/usr/lib']
language = f77
include_dirs = ['/usr/local/include', '/usr/include', '/usr/local/Cellar/pypy3/7.1.1_1/libexec/include']

Splitting linalg.interpolative Fortran source files
blas_opt_info:
blas_mkl_info:
libraries mkl_rt not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

blis_info:
libraries blis not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

openblas_info:
libraries openblas not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

atlas_3_10_blas_info:
libraries satlas not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

FOUND:
define_macros = [('NO_ATLAS_INFO', 1)]
libraries = ['blas', 'blas']
library_dirs = ['/usr/lib']
include_dirs = ['/usr/local/include', '/usr/include', '/usr/local/Cellar/pypy3/7.1.1_1/libexec/include']

......
error: library dfftpack has Fortran sources but no Fortran compiler found
----------------------------------------
ERROR: Failed building wheel for scipy
Running setup.py clean for scipy
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scipy/setup.py'"'"'; __file__='"'"'/private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
cwd: /private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scipy
Complete output (11 lines):
/usr/local/Cellar/pypy3/7.1.1_1/libexec/lib-python/3/importlib/_bootstrap.py:206: UserWarning: builtins.type size changed, may indicate binary incompatibility. Expected 872, got 416
return f(*args, **kwds)

`setup.py clean` is not supported, use one of the following instead:

- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)

Add `--force` to your command to use it anyway if you must (unsupported).

----------------------------------------
ERROR: Failed cleaning build dir for scipy
Failed to build scipy
Building wheels for collected packages: scikit-learn
Building wheel for scikit-learn (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/pypy3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scikit-learn/setup.py'"'"'; __file__='"'"'/private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scikit-learn/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 /private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-wheel-9lv6z6fz --python-tag pp371
cwd: /private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scikit-learn/
Complete output (28 lines):
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scikit-learn/setup.py", line 290, in <module>
setup_package()
File "/private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scikit-learn/setup.py", line 286, in setup_package
setup(**metadata)
File "/usr/local/Cellar/pypy3/7.1.1_1/libexec/site-packages/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "/private/var/folders/sp/vz74h1tx3jlb3jqrq__bjwh00000gp/T/pip-install-lxpsdrrm/scikit-learn/setup.py", line 174, in configuration
config.add_subpackage('sklearn')
File "/usr/local/Cellar/pypy3/7.1.1_1/libexec/site-packages/numpy/distutils/misc_util.py", line 1035, in add_subpackage
caller_level = 2)
File "/usr/local/Cellar/pypy3/7.1.1_1/libexec/site-packages/numpy/distutils/misc_util.py", line 1004, in get_subpackage
caller_level = caller_level + 1)
File "/usr/local/Cellar/pypy3/7.1.1_1/libexec/site-packages/numpy/distutils/misc_util.py", line 941, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "sklearn/setup.py", line 62, in configuration
config.add_subpackage('utils')
File "/usr/local/Cellar/pypy3/7.1.1_1/libexec/site-packages/numpy/distutils/misc_util.py", line 1035, in add_subpackage
caller_level = 2)
File "/usr/local/Cellar/pypy3/7.1.1_1/libexec/site-packages/numpy/distutils/misc_util.py", line 1004, in get_subpackage
caller_level = caller_level + 1)
File "/usr/local/Cellar/pypy3/7.1.1_1/libexec/site-packages/numpy/distutils/misc_util.py", line 941, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "sklearn/utils/setup.py", line 8, in configuration
from Cython import Tempita
ModuleNotFoundError: No module named 'Cython'
----------------------------------------
ERROR: Failed building wheel for scikit-learn
Running setup.py clean for scikit-learn
Failed to build scikit-learn
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

怎么办?谢谢
...全文
1211 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
凤晓飞扬 2019-09-18
  • 打赏
  • 举报
回复
$ pypy3
Python 3.6.1 (784b254d669919c872a505b807db8462b6140973, Sep 04 2019, 12:29:41)
[PyPy 7.1.1-beta0 with GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``PyPy development: the art of
waiting''
内容概要:本文针对高新能源渗透率电网中构网型(GFM-VSG)与跟网型(GFL-PQ)并联变流器的异构控制体系及其频率支撑能力展开深入研究,重点通过Simulink仿真实现对混合并网系统的动态特性进行建模与分析。研究系统梳理了GFM与GFL变流器在控制原理上的本质差异,揭示了其在多时间尺度下的交互机制,并探讨了在强弱电网不同适配场景下的协同控制逻辑。通过构建包含虚拟同步机(VSG)和恒功率控制(PQ)策略的仿真模型,全面分析系统在电网扰动下的频率响应特性、暂态稳定性及扰动抑制能力。研究对比了不同类型变流器在频率调节、功率分配和系统恢复方面的性能表现,深入剖析异构系统中频率支撑的协作机制与优化路径,为高比例新能源电网的安全稳定运行提供了理论依据与技术支撑。; 适合人群:具备电力电子、新能源并网、自动控制或电力系统相关专业知识背景,从事科研、工程应用或技术开发的研发人员、高校研究生及高年级本科生。; 使用场景及目标:① 研究GFM与GFL变流器在混合并网系统中的协同控制策略与交互机理;② 分析高渗透率新能源电网面临的频率稳定问题及变流器的频率支撑能力;③ 利用Simulink搭建GFM-GFL混合并网系统仿真模型,开展动态性能验证、控制算法设计与优化。; 阅读建议:建议结合文中提到的Simulink仿真模型与博士论文复现案例进行实践操作,重点关注不同工况下的系统频率响应曲线、功率动态曲线与控制参数敏感性分析,深入理解异构控制体系的设计逻辑、多时间尺度交互特性及优化潜力。

37,738

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • WuKongSecurity@BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧