我正在尝试在 Ubuntu 14.04 上使用 icc 编译器从源代码构建 cython,因为我的 python 是使用 Intel icc 编译器编译的。
当我尝试使用安装 cython 时pip3 安装 cython然后运行 cython 我收到以下错误
Traceback (most recent call last):
File "/usr/local/bin/cython", line 9, in <module>
load_entry_point('Cython==0.24', 'console_scripts', 'cython')()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python3.4/dist-packages/Cython/Compiler/Main.py", line 28, in <module>
from .Scanning import PyrexScanner, FileSourceDescriptor
ImportError: /usr/local/lib/python3.4/dist-packages/Cython/Compiler/Scanning.cpython-34m.so: undefined symbol: __intel_sse2_strchr
如何使用 icc 编译器从源代码安装 cython ?
我尝试了这个但不起作用
从cython目录(从github下载)
python3.4 setup.py CC=icc
我收到以下消息 -
/home/aa/libPython/cython/Cython/Distutils/build_ext.py:20: UserWarning:
Cython.Distutils.build_ext does not properly handle dependencies and is deprectated. Use Cython.Build.build_ext instead.
"Cython.Distutils.build_ext does not properly handle dependencies "
Unable to find pgen, not compiling formal grammar.
invalid command name 'CC=icc'