PyCharm Cython调试器扩展编译 - gcc失败

时间:2017-10-01 13:29:39

标签: python gcc pycharm cython

我在Ubuntu 17.04上的PyCharm中编译Cython调试器扩展时遇到了一些麻烦。当我启动调试器会话时,会出现“Python Debugger Extension Available”弹出窗口;但是每次我点击Install,我都会看到一个对话框:

Non-zero exit code (1):
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

我安装了Gnu C编译器:

$ which x86_64-linux-gnu-gcc
/usr/bin/x86_64-linux-gnu-gcc
$ ls -l /usr/bin/x86_64-linux-gnu-gcc
lrwxrwxrwx 1 root root 5 Apr 29 14:02 /usr/bin/x86_64-linux-gnu-gcc -> gcc-6

我正在使用Python 3.5:

$ python3 -V
Python 3.5.3

我已经安装了Python开发人员库:

$ sudo apt install python3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-dev is already the newest version (3.5.3-1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

感谢任何建议!

1 个答案:

答案 0 :(得分:0)

阿。事实证明我的项目是为Python 3.6配置的:

enter image description here