我在Ubuntu17.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.感谢您的任何建议!
Huw
发布于 2017-10-01 21:39:20
阿。原来我的项目是为Python 3.6配置的:

https://stackoverflow.com/questions/46512856
复制相似问题