python - undefined symbol : __intel_sse2_strcpy

标签 python intel icc

我正在尝试按照此处使用 setup.py 构建 部分下的说明在我们 super 计算机的登录节点上安装 phonopy https://atztogo.github.io/phonopy/install.html .

基本上,只有两个命令:

tar xvfz phonopy-1.11.2.tar.gz
python setup.py install --user

安装没问题;但是,当我使用它时,出现以下错误,提示 undefined symbol: __intel_sse2_strcpy。这是完整的错误消息:

/home/syuan43/.local/bin/bandplot 
Traceback (most recent call last):
  File "/home/syuan43/.local/bin/bandplot", line 4, in <module>
    __import__('pkg_resources').run_script('phonopy==1.11.8.5', 'bandplot')
  File "/software/CentOS-6/tools/python-2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 726, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/software/CentOS-6/tools/python-2.7.9/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1491, in run_script
    exec(script_code, namespace, namespace)
  File "/home/syuan43/.local/lib/python2.7/site-packages/phonopy-1.11.8.5-py2.7-linux-x86_64.egg/EGG-INFO/scripts/bandplot", line 52, in <module>

  File "build/bdist.linux-x86_64/egg/phonopy/__init__.py", line 37, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/api_phonopy.py", line 39, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/structure/symmetry.py", line 37, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/structure/spglib.py", line 35, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/_spglib.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/phonopy/_spglib.py", line 6, in __bootstrap__
ImportError: /home/syuan43/.python-eggs/phonopy-1.11.8.5-py2.7-linux-x86_64.egg-tmp/phonopy/_spglib.so: undefined symbol: __intel_sse2_strcpy

不确定这是否有帮助,这是我正在使用的模块:

$ module list
Currently Loaded Modules:
  1) ifort_icc/15.0   2) intel_mpi/5.0.1   3) python/2.7.9

知道如何解决上述问题吗?或者有什么建议可能是什么原因造成的?

最佳答案

(老问题,但我会为下一个我添加一个答案。)

对我来说,这是一个编译器问题。正在做:

export CC=gcc

进行 pip 安装之前为我解决了这个问题。

另请参阅:https://github.com/jswhit/pyproj/issues/76

关于python - undefined symbol : __intel_sse2_strcpy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42611515/

相关文章:

python - 如何在 Tensorflow 2.0 中获得其他指标(不仅仅是准确性)?

python - 使用 % 和//求除数

c++ - ICC (14.0) 甚至无法在 Ubuntu 13.10 中编译 hello-world?

windows - 英特尔实感 3D 摄像头无法初始化

python subprocess.call 和管道

python - 在子进程调用ffmpeg中禁用输出

c - 如何从 C 程序访问 rdmsr?

c - 如何使 C 编译器将所有嵌套循环转换为单个循环

c++ - 诊断多重定义错误

visual-c++ - 一次将所有源文件传递给编译器有什么好处吗?