Skip to content

Instantly share code, notes, and snippets.

@jeffgreenca
Created March 29, 2017 00:45
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • Save jeffgreenca/28e0fe58644b8af48f97a3e18fe08302 to your computer and use it in GitHub Desktop.
Save jeffgreenca/28e0fe58644b8af48f97a3e18fe08302 to your computer and use it in GitHub Desktop.
Anaconda Keras / TensorFlow environment setup
Install TensorFlow (CPU), Keras, and some other tools to a new anaconda environment.
Open Anaconda Prompt
conda create --name tensorflow35 python=3.5
conda activate tensorflow35
conda install jupyter
conda install scipy
conda install spyder
pip install tensorflow
pip install pyyaml h5py
pip install keras
pip install opencv-python
pip install matplotlib seaborn argparse
@ramya-kiran
Copy link

Thank you very much for providing the above piece of information

@dear983604
Copy link

dear983604 commented Sep 6, 2017

when I conduct "conda activate tensorflow35"
it showed "CommandNotFoundError: 'activate'
and I tried "activate tensorflow35" it works

then after I finished all the installation and click the icon which is "IPython(tensorflow35)"
it popped out and disappear...seems nothing inside..(so do other items)
I use administrator authority to install these
did I do something wrong?

@jeffgreenca
Copy link
Author

@dear983604 I am not sure, but you might check this fork to see if it works for you instead: https://gist.github.com/parrondo/612f79d4a5e302467270be54d2260b07

@filmo
Copy link

filmo commented Sep 27, 2017

For Mac users, you typically have to use the CPU version directly from the URL. This worked for me (Python 3.6)

pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.3.0-py3-none-any.whl

@mikearango
Copy link

@dear983604 you actually need to use source activate tensorflow35 to activate the virtual environment. @jeffgreenca thanks for this. Just stumbled upon and it looks interesting.

@majacaci00
Copy link

majacaci00 commented Nov 4, 2017

@jeffgreenca simple and to the point -- [i for i in "thank you"]

@jeffgreenca
Copy link
Author

@majacaci00 Ha! Thank you!

@MyVanitar
Copy link

You can use conda install -c hesi_m keras to install the latest version of Keras (2.1.6) and Tensorflow(1.8) for you.

@MyVanitar
Copy link

MyVanitar commented Jun 8, 2018

Now, You can use conda install -c hesi_m keras to install the latest version of Keras (2.2.0) and Tensorflow(1.8.0) for you.

@BirdeeChen
Copy link

@VanitarNordic, this command still install tensorflow(1.1.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment