When creating a development environment with Anaconda (Django / Python) + PyCharm in Mac environment, the Path for linking Anaconda virtual environment with Pycharm has changed (as of 2020/10/03).
/opt/anaconda3/envs/(Environment name created by ANACONDA)/bin/python
Complete web full stack capture with [Python Django 3 RestFramework + Angular 9] The PATH that I stumbled upon when learning this seems to have changed as of 2020/10/03.
Mac environment (MacBook Pro 13inch 2020 / MacOS Catalina)
Create a Django / Python virtual environment with ANACONDA (ANACONDA NAVIGATOR 4.8.3)
ANACONDA NAVIGATOR → Environments → Create → Since it is + popupmenu, you can create the set virtual environment by leaving the virtual environment name and python version as they are and pressing create to exit.
Press ▶ ︎ next to the virtual environment name specified above, and you can use the terminal with Open terminal
From the terminal pip install
django 3.0.4 djangorstframework 3.11.0
Set up to code ANACONDA virtual environment with PyCharm (PyCharm 2020.2.3 (Community Edition))
Create a folder for PyCharm project in any location (I'm directly under the user home) with any name
Create the folder created above from PyCharm
Pycharm → Preferences → Project: PyCharm project name / Project Interpreter → ⚙ → Add ...
Now, in the following state, select the Existing environment and select the Interpreter: path, and the ANACONDA virtual environment will be linked to the PyCharm project.
/opt/anaconda3/envs/(Environment name created by ANACONDA)/bin/python
The stumbling block was that the PATH for linking from PyCharm to the ANACONDA virtual environment was changed. I had a hard time finding this PATH ... (As of 2020/10/03)
Recommended Posts