[英]Importerror dlopen () symbol not found expected in flat namespace
I'm trying to install the SPAMS (SPArse Modeling Software) toolbox for python. 我正在尝试为SPA安装SPAMS (SPArse建模软件)工具箱。 The building and installing seem to be ok, but when I test the installation I get this error: 构建和安装似乎还可以,但是当我测试安装时,出现此错误:
ImportError: dlopen(/Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so, 2): Symbol not found: _GOMP_critical_end
Referenced from: /Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so
Expected in: flat namespace
in /Users/Apollo/venv/lib/python2.7/site-packages/_spams_wrap.so
I checked all the answers but nothing worked and I'm stuck. 我检查了所有答案,但没有任何效果,被卡住了。 I work on Mac OS X Lion 10.7.5, with virtual env, python 2.7.1, IDE PyCharm 5.0.6. 我在Mac OS X Lion 10.7.5,虚拟环境,python 2.7.1,IDE PyCharm 5.0.6上工作。 The version of gcc is: gcc的版本是:
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Following the suggestion of the AMICO (Accelerated Microstructure Imaging via Convex Optimization) Python package support forum, it was due to my gcc, which doesn't have openmp by default. 继建议的中埃美柯 Python包支持论坛(通过凸优化加速组织成像),这是由于我的gcc,其默认情况下不具有OpenMP的。 Commenting few lines in the setup.py file did the trick. 注释setup.py文件中的几行即可达到目的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.