Search code examples
pythonpython-3.6python-venv

Using Python with venv and PyCharm


I'd prefer to use the canonical 'venv' when using Pycharm. Pycharm doesn't seem to support venv (it supports virtualenv and others). What do I need to do to safely use venv?


Solution

  • Just use venv, then in Pycharm Ctrl-Alt-S, Project -> Project Interpreter -> Viretualenv Environment -> Existing environment -> Interpreter (set path from your venv here). All seems to work