切换默认配置Python2.7到Python3.5后,debug功能异常,依次解决。
1,执行debug,报错:warning: Debugger speedups using cython not found

注意:在这里可能会遇到path始终不对的问题,我们直接从Application下进入对应的文件夹,执行命令:python3 setup_cython.py build_ext --inplace.

2,执行命令python3 setup_cython.py build_ext --inplace
报错:ImportError: No module named setuptools

3, 参考官网如何安装setuptools:https://pypi.python.org/pypi/setuptools
进入app,安装setuptools,
执行命令sudo curl https://bootstrap.pypa.io/ez_setup.py -o - | python3
报错如下:Permission denied

4,获取当前目录的权限,执行命令
sudo chmod -R 777 "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/":

5,再次执行sudo curl https://bootstrap.pypa.io/ez_setup.py -o - | python3的命令,成功。
一顿copy

最后成功

6,回到PyCharm目录:
/Applications/PyCharm CE.app/Contents/helpers/pydev,
执行python3 setup_cython.py build_ext --inplace
安装成功,如下:

网友评论