[PYTHON] Reflect the virtual environment created by virtualenv or conda in the IntelliJ IDEA (PyCharm) project (memo)

Problem: I can't see the packages installed in the virtual environment

Kobito.kTIjwv.png

Solution

Open Project Structure with command +; and select Python SDK> Add Local from+in the upper left.

Kobito.ykUxyG.png

Set the bin / python path of the virtual environment. In my environment / Users / user_name / anaconda / envs / machine_learning_env / bin / python

Kobito.JGuG84.png

After adding, you will be able to resolve the path with apply.

If it doesn't work, it's quick (maybe) to delete the entire .idea / directory and recreate the project.

Reference: https://www.jetbrains.com/help/idea/adding-existing-virtual-environment.html

Recommended Posts

Reflect the virtual environment created by virtualenv or conda in the IntelliJ IDEA (PyCharm) project (memo)
Reflect the virtual environment created with Miniconda in Jupyter notebook
How to easily switch the virtual environment created by Conda on Jupyter
Operation memo of Conda virtual environment
pyenv + pyenv-Automatically load the virtualenv environment in the virtualenv environment
Create a Django project and application in a Python virtual environment and start the server
Execution environment on the Web by "Project Jupyter"
Use the latest pip in a virtualenv environment
Create a virtual environment with conda in Python
Precautions when installing packages in the conda environment
Pillow environment construction --Virtual environment by virtualenv, interactive environment by iPython