user3731622
user3731622

Reputation: 5095

Error activating conda environment

I created a conda environment called py3. When I try to activate the environment I get the error message saying "No such file or directory."

When I list the environments it shows the environment is in

~/.conda/envs/py3

I've read a few posts related to this: Conda can't activate environment and conda how do I activate environments

Neither of the posts seem to have an answer for my issue.

Upvotes: 1

Views: 3496

Answers (2)

srilekha palepu - Intel
srilekha palepu - Intel

Reputation: 2253

For this you need to set path for anaconda using:

for anaconda 2 :

export PATH=~/anaconda2/bin:$PATH

for anaconda 3 :

export PATH=~/anaconda3/bin:$PATH

for anaconda 4 :

Use the Anaconda Prompt

and then

conda --version  

to confirm that it worked.

Upvotes: 0

Nishank Mahore
Nishank Mahore

Reputation: 514

Install a different version of Python

You can create and activate a new environment named snakes, and install the latest version of Python 3 as follows:

conda create --name py3 python=3

Linux, OS X:

source activate py3

Windows:

activate py3

Upvotes: 1

Related Questions