Go to content ALT+c

CDL Python Bootcamp  (@CDL, Aug. 2017) (Old site; new site is at https://scinet.courses)

Friday May 31, 2024 - 16:24
  • Export Content

2 Getting Python 2 and 3 on Windows with Anaconda

No guarantees, but the following worked on Windows 10 for me to get both Python 2.7 and Python 3.5 with Tensorflow in Git-bash on Windows:
  1. Install git-bash ("git for windows") from https://git-scm.com/downloads
  2. Install anaconda 4.4.0 with python 2.7 from https://www.anaconda.com/download/
  3. To get python 2.7 to work properly in git-bash, which we requires us to change a setting in Windows. Find the 'Environment Variables' in the settings, and edit the 'PATH' one. I had to add C:\Users\rzon\Anaconda2, C:\Users\rzon\Anaconda2\Scripts and C:\Users\rzon\Anaconda2\Library\bin
  4. Open git-bash.
  5. Check that python works by typing python. Get out of python (exit()).
  6. Create a new python 3.5 environment with conda create -n Python35 python=3.5
  7. Activate the environment with conda activate Python35
  8. Install tensorflow with conda install tensorflow (if you want tensorflow with GPU support, replace tensorflow with tensorflow_gpu).
  9. You can leave the environment with 'source deactivate' Variations of this will likely also work, ie., install python 2.7 under anaconda python 3.5, or use the anaconda prompt (which means you do not get git, but you may not need to add things to the PATH).
Last Modified: Friday Sep 1, 2017 - 07:36. Revision: 3. Release Date: Wednesday Aug 30, 2017 - 19:00.


Content Navigation


Course Calendar


Course Events



Questions? Contact Support.
Web site engine's code is copyright © ATutor®.
Modifications and code of added modules are copyright of SciNet.