美文网首页
PyCharm Python3 Debug环境搭建

PyCharm Python3 Debug环境搭建

作者: 嘟嘟噜噜可 | 来源:发表于2016-04-21 14:43 被阅读4760次

切换默认配置Python2.7到Python3.5后,debug功能异常,依次解决。

1,执行debug,报错:warning: Debugger speedups using cython not found


Paste_Image.png

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

Paste_Image.png

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


Paste_Image.png

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

Paste_Image.png

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

Paste_Image.png

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

一顿copy


Paste_Image.png

最后成功


Paste_Image.png

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

Paste_Image.png

相关文章

网友评论

      本文标题:PyCharm Python3 Debug环境搭建

      本文链接:https://www.haomeiwen.com/subject/rfptrttx.html