Pycharm Environment Setup With Anaconda

##machinelearning ##deeplearning ##python

sunny savita Oct 18 2020 · 5 min read
Share this

This tutorial is split into three sections. The first part is installing PyCharm. The second part is installing Anaconda .Finally, the last part of the tutorial goes over how to Anaconda Environment Setup With pycharm.  Though they are independent tools, PyCharm and AnaConda can be used together for projects that can benefit from both tools. PyCharm is an IDE built to make it easier to write Python code, by providing a text editor and debugging, among other features. Anaconda is a Python distribution focused on data driven projects.    

Download and Install  Pycharm

Step 1) To download PyCharm visit the website https://www.jetbrains.com/pycharm/download/ and Click the "DOWNLOAD" link under the Community Section.     

Step 2) Once the download is complete, run the exe for install PyCharm. The setup wizard should have started. Click “Next”.

Step 3) On the next screen, Change the installation path if required. Click “Next”.

Step 4) On the next screen, you can create a desktop shortcut if you want and click on “Next”.

Step 5) Choose the start menu folder. Keep selected JetBrains and click on “Install”.

Step 6) Wait for the installation to finish.

Step 7) Once installation finished, you should receive a message screen that PyCharm is installed. If you want to go ahead and run it, click the “Run PyCharm Community Edition” box first and click “Finish”.

Step 8) After you click on "Finish," the Following screen will appear.

Download and Install Anaconda

Step 1) Go to the Anaconda Website and choose either a Python 3.x graphical installer.

Step 2) Ideally, you open/run the file as administrator.you can open without Run as administrator as well.

Step 3) When the screen below appears, click on Next.

Step 4). Read the License Agreement and click on I Agree.

Step 5). Choose either Just Me or All Users(Choose All user).

step 6). Please make a note of your installation location (1) and then click Next (2) (Choose for All user).

Your installation location can vary so keep note of where you installed anaconda. In the example image on the left, the path is similar to if you selected “Just Me” for step 4. In the example image on the right, the path is similar to if you selected “All Users” for step 4.

This is an important part of the installation process. The recommended approach is to not check the box (1) to add Anaconda to your path. This means you will have to use Anaconda Navigator or the Anaconda Command Prompt (located in the Start Menu under “Anaconda”) when you wish to use Anaconda (you can always add Anaconda to your PATH later if you don’t check the box). If you want to be able to use Anaconda in your command prompt, please use the alternative approach and check the box. Click on Install (2)(Choose alternative approach).

This is important. Consider what you are doing in this step.

Step 7). Click on Next and Click on Finish.

Configuring a conda environment in PyCharm

Step 1) One of the first things one should do after installing PyCharm is to use it. The first thing we shall do is create a project.

Step 2) After choose the cretae project you will get two options either you have to create a new environment or create a existing environment.If you wnat to cretae a new environment just go with new environment if you want to open Existing enviornment go with existing environment(We will see after a while).

If you go with new environment First you have to select the location of project.After choosing the location of project  just choose location of the Virtual Environment along with their name . After choosing the location of the project choose the version of the python then click over the create.

Step 3) For checking whether enviornment has created successfully or not just open your terminal and look left side you will be able to see the name of enviornment.

Alternatively Way, from the Existing Enviornment.

Step1) Select the existing interpreter.

Step2) After choosing the existing environment you have to select python interpreter so for selecting the python interpreter just over the 3 dots it is highlighted in red circle.

This tutorial is split into three sections. The first part is installing PyCharm. The second part is installing Anaconda .Finally, the last part of the tutorial goes over how to Anaconda Environment Setup With pycharm.  Though they are independent tools, PyCharm and AnaConda can be used together for projects that can benefit from both tools. PyCharm is an IDE built to make it easier to write Python code, by providing a text editor and debugging, among other features. Anaconda is a Python distribution focused on data driven projects.  

Step3) Then choose your python interpreter(For checking your python interpreter location just go over the Anaconda prompt and type conda env and choose your interpreter location according  to environment)

step 4) Finally you will get this window go over your terminal to check is your envionment is active or not.

Another way,Configuring a conda environment if you are in  PyCharm project.

Step 1) In the Settings/Preferences dialog (⌘,), select Project: <project name> | Project Interpreter.

step 2) In the left-hand pane of the Add Python Interpreter dialog box, select Conda Environment. The following actions depend on whether the conda environment existed before.

Step 3) Click the setting icon and select Add and choose your Interpreter.

 Finally, it is important to note we have covered all the way where we can set conda env in Pycharm.Thanks for following  as always, feel free to like and comment the post.

    

Comments
Read next