我正在尝试解决以下问题。当我尝试在此 ntb中运行以下行时,我得到:
native = get_native(rsys, odesys, 'cvode')
INFO:pyodesys.native._base:Cythonizing /Users/user/Library/Caches/python3.8-pyodesys-0.13.1/_cvode_wrapper.pyx to ./_cvode_wrapper.cpp
INFO:pyodesys.native._base:In "/var/folders/bx/tb4883l53hdd3zp2y0nyy_4m0000gp/T/tmpt2vuw8pg", executing:
"/usr/bin/g++ -fwrapv -pthread -c -std=c++11 -Wall -Wextra -fPIC -O2 -ffast-math -funroll-loops -fopenmp -fno-strict-aliasing -o ./_cvode_wrapper.o -DPYCVODES_NO_KLU=0 -DPYCVODES_NO_LAPACK=0 -DANYODE_NO_LAPACK=0 -I/Users/user/anaconda3/lib/python3.8/site-packages/numpy/core/include -I/Users/jan/anaconda3/lib/python3.8/site-packages/pyodesys/native/sources -I/Users/jan/anaconda3/lib/python3.8/site-packages/pycvodes/include -I/Users/jan/anaconda3/include/python3.8 ./_cvode_wrapper.cpp"
fopenmp我认为这可能是和 的问题gcc,如这些地方所述(How to deal with "clang: error: unsupported option '-fopenmp'" on travis?,https://github.com/microsoft/LightGBM/issues/ 3、 https: //github.com/velocyto-team/velocyto.R/issues/2)但提出的解决方案(https://github.com/velocyto-team/velocyto.R/issues/2#issuecomment-341165967,https://github.com/microsoft/LightGBM/issues/3#issuecomment-254149689,https : //github.com/kharchenkolab/conos/wiki/Installing-Conos-for-Mac-OS)只是不适用于我。我也尝试使用 conda 安装 GCC 但我得到:
conda install gcc
PackagesNotFoundError: The following packages are not available from current channels: - gcc Current channels: - https://repo.anaconda.com/pkgs/main/osx-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/osx-64 - https://repo.anaconda.com/pkgs/r/noarch
使用homebrew
我已经gcc
安装...知道发生了什么以及如何修复它吗?我运行的是 MacOS 10.15.7。谢谢
HUH函数
喵喵时光机