Skip to content

Instantly share code, notes, and snippets.

@jamieparkinson
Created February 17, 2021 10:52
Show Gist options
  • Save jamieparkinson/2bbeff1506cacd9e1017906ab4b3a400 to your computer and use it in GitHub Desktop.
Save jamieparkinson/2bbeff1506cacd9e1017906ab4b3a400 to your computer and use it in GitHub Desktop.
Importing virtualenvs into IntelliJ
  1. Make a virtualenv (eg with virtualfish)
  2. Project Structure > Platform Settings > SDKs > (add) > Add Python SDK
  3. Existing environment > Choose ~/.virtualenvs/<name>/bin/python3.7
  4. Project Settings > Modules > (add) > Import module > (select root directory of Python app)
  5. Create module from existing sources, confirm sources
  6. Choose SDK created in step 3
  7. (optional) Mark sources
  8. Module in sidebar > Dependencies > (update SDK)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment