0

I installed Miniconda2 on Windows and am using Cygwin. I found the Miniconda2/Scripts folder that has the conda.exe and have been able to successfully conda install packages.

However, after following this post and using export to redirect my Path to the Python.exe (which python does give me the correct Python.exe), I cannot even run Python anymore. It just hangs.

However, if I locate the file using Windows File Explorer and just double click the Python.exe file, it does run Python and successfully finds the imported packages. Any ideas what's wrong?

J-Win
  • 1,322
  • 16
  • 35
  • 1
    Can you run the interactive REPL? If not, does running `python -i` make it work? Can you run a script that prints to stdout, e.g. `python -c "import sys; print(sys.executable)"`? – Eryk Sun Jul 11 '17 at 03:03
  • Ahh yes I had completely forgotten about the `-i` flag. Thanks! – J-Win Jul 11 '17 at 04:00

1 Answers1

0

To get Miniconda2 working in Windows, I added the following to my .profile

export PATH="~/Miniconda2/Scripts:$PATH"
export PATH="~/Miniconda2/:$PATH"

Finally, I added the following alias in my .bashrc

alias python="python -i"
J-Win
  • 1,322
  • 16
  • 35