Directing PyCharm to Python 3.3 interpreter?

前端 未结 2 651
渐次进展
渐次进展 2021-01-31 10:35

I\'m not sure why I\'m having so much trouble with this. I\'m on OS X 10.7, and I installed Python with default settings and ran the .command file included.

I just want

2条回答
  •  余生分开走
    2021-01-31 11:22

    PyCharm detects Python 3.3 path automatically for the Python installed from http://python.org mpkg installer:

    Path

    /Library/Frameworks/Python.framework/Versions/3.3/bin/python3
    

    Once you add this interpreter to PyCharm, install the package management tools (click on the Install 'distribute', then click on Install 'pip'):

    pip

    Upgrade pip to the latest version using the Upgrade button (distribute upgrade will fail).

    Now you can install packages with the Install button, for example Django can be installed from the Interpreters dialog in PyCharm:

    Django

    If you have problems with code completion, try File | Invalidate Caches, restart PyCharm and wait until indexing is finished. For me it worked fine out of the box:

    code completion works

提交回复
热议问题