How to configure custom PYTHONPATH with VM and PyCharm?

For PyCharm 5 (or 2016.1), you can: select Preferences > Project Interpreter to the right of interpreter selector there is a “…” button, click it select “more…” pop up a new “Project Interpreters” window select the rightest button (named “show paths for the selected interpreter”) pop up a “Interpreter Paths” window click the “+” buttom … Read more

How can I tell PyCharm what type a parameter is expected to be?

Yes, you can use special documentation format for methods and their parameters so that PyCharm can know the type. Recent PyCharm version supports most common doc formats. For example, PyCharm extracts types from @param style comments. See also reStructuredText and docstring conventions (PEP 257). Another option is Python 3 annotations. Please refer to the PyCharm … Read more

Src layout to dispense .src prefix in imports? Activate venv in PyCharm terminal for development installs

Update / Workaround One can follow the steps in this link to mark a folder as a source root. From the link: Source roots the Source root icon contain the actual source files and resources. PyCharm uses the source roots as the starting point for resolving imports This way we don’t have to install It … Read more

pycharm doesn’t recognize pygame package

To use pygame under OS X, you need to run Python under the 32 bit interpreter. It’s usually called something like ‘python2.7-32’, and if installed from the package on http://www.python.org/, within /usr/local/bin To get this working in PyCharm, open a project, then preferences (‘apple’-‘comma’), go to ‘python interpreters’, and click the ‘+’ button in the … Read more