Using PyCharm with Anaconda Python¶
PyCharm is installed on all our Ubuntu 16 workstations.
- Change your shell to bash.
- Logout, then log back in to ensure you pick up the changes.
- Download Anaconda. Save it in
/local-scratchfor faster access.
- Run the installer by typing
- When prompted for an installation directory, enter
/local-scratch/myanaconda(or any other directory name that does not yet exist).
- Conda should prompt you to activate it. Answer “yes”. This should not require a password. If you
[sudo]asks for your password, you are probably out of disk space or you have exceeded your home directory quota. See our Disk Quota page for troubleshooting tips.
conda installto obtain OpenCV, cudatoolkit, tensorflow, scikit-learn or whatever else you need.
- Point PyCharm at Anaconda’s
/local-scratch is not backed up. Keep backups of important work in your shared lab file space or SFU Vault.
Telling PyCharm to Use Anaconda Python (new projects)¶
When creating a new project, the “Select Python Interpreter” dialog box will appear. Fill in the path to your Anaconda Python binary, e.g.
/local-scratch/anaconda/bin/python2.7 and click [OK].
Telling PyCharm to Use Anaconda Python (existing projects)¶
With an existing project open, choose the File menu => Settings…* => Project: YourProject => [gear icon] => **Add Local.
Fill in the path to your Anaconda Python binary, e.g.
/local-scratch/anaconda/bin/python2.7and click [OK]. The first time you do this, PyCharm will spend several minutes scanning available modules.