Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you activate an Anaconda environment in the Terminal with Mac OS X?

So I'm taking an online class and here are the instructions:

Install Anaconda:

Follow the instructions on the Anaconda download site.

Create a conda environment called tensorflow:

# Python 2.7
$ conda create -n tensorflow python=2.7

# Python 3.4
$ conda create -n tensorflow python=3.4

# Python 3.5
$ conda create -n tensorflow python=3.5

Activate the environment and use conda or pip to install TensorFlow inside it.

So how do you activate the environment?

I have Mac OS X by the way.

like image 604
C Hobbs Avatar asked Dec 24 '22 22:12

C Hobbs


1 Answers

So how do you activate the environment?

I have Mac OS X by the way.

On OS X, after creating the tensorflow environment using one of the commands from your example, execute:

source activate tensorflow
like image 106
techraf Avatar answered May 13 '23 04:05

techraf