How to access different Anaconda environments from PyCharm for coding in Python?

0 votes
Hi all, pretty straightforward question. I have manually installed Conda along with Python 3.7 and Python 2.7 on Windows 10.

I am aware of how easy it is to change the Conda environment using the command line directly. But in PyCharm, I can only see Python 3.7 and not 2.7.

What am I missing here? Is there any simple way to select the Python environment for Anaconda?

All help appreciated!
Feb 11 in Python by Anirudh
• 2,070 points
151 views

1 answer to this question.

0 votes

Hi!

In PyCharm, you can add any number of interpreters that you desire.

To do just so, go to Settings->Project->Project Interpreter

You will be greeted with the current interpreter here as soon as you open the screen.

Look for a list which has all the names of the interpreters installed. If you find it, select it and you're good to go.

If you do not find it, then click on the little gear wheel icon on the right and select Add local.

Once you are done with this, select the directory that contains your Conda environment and use it.

Hope this helped!

answered Feb 11 by Nymeria
• 3,520 points

Related Questions In Python

0 votes
1 answer

How to find index from raw and column in python?

You probably want to use np.ravel_multi_index: import numpy as ...READ MORE

answered Sep 12, 2018 in Python by Priyaj
• 56,540 points
67 views
0 votes
1 answer

How to find index from raw and column in python?

You probably want to use np.ravel_multi_index: import numpy as ...READ MORE

answered Sep 24, 2018 in Python by Priyaj
• 56,540 points
32 views
0 votes
1 answer

In python how to test a string for a substring

if "ABCD" in "xxxxABCDyyyy": This can be used ...READ MORE

answered Oct 24, 2018 in Python by Priyaj
• 56,540 points
67 views
0 votes
1 answer

How can I prevent or alter access to class variables in Python?

The ActiveState solution that Pynt references makes instances of ...READ MORE

answered Dec 5, 2018 in Python by ariaholic
• 7,340 points
60 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 238 views
+4 votes
6 answers
0 votes
1 answer

How to fix this? ValueError: invalid literal for int() with base 10 error in Python

The following are totally acceptable in python: passing ...READ MORE

answered Nov 16, 2018 in Python by Nymeria
• 3,520 points
12,041 views
0 votes
1 answer

How to write inline if statement for print in Python?

Inline if-else expression must always contain the else ...READ MORE

answered Dec 4, 2018 in Python by Nymeria
• 3,520 points

edited Dec 6, 2018 by Nymeria 905 views