Skip to content

Instantly share code, notes, and snippets.

@jeffg-dev
Created March 29, 2017 00:45
Show Gist options
  • Select an option

  • Save jeffg-dev/28e0fe58644b8af48f97a3e18fe08302 to your computer and use it in GitHub Desktop.

Select an option

Save jeffg-dev/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
Copy Markdown

Thank you very much for providing the above piece of information

@dear983604

dear983604 commented Sep 6, 2017

Copy link
Copy Markdown

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?

@jeffg-dev

Copy link
Copy Markdown
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

filmo commented Sep 27, 2017

Copy link
Copy Markdown

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
Copy Markdown

@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

majacaci00 commented Nov 4, 2017

Copy link
Copy Markdown

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

@jeffg-dev

Copy link
Copy Markdown
Author

@majacaci00 Ha! Thank you!

@MyVanitar

Copy link
Copy Markdown

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

MyVanitar commented Jun 8, 2018

Copy link
Copy Markdown

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
Copy Markdown

@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