0

I've got anaconda 3 installed and working, but I need to use python 2.

I've installed anaconda2, but when I launch "python2" from the command line none of the modules can be accessed.

So basically, how do I configure my terminal so that I can access the anaconda modules when I launch python2

user6072577
  • 339
  • 5
  • 11

2 Answers2

0

Within anaconda, you can install whatever version of python you want through anaconda virtual environments.
Try the following.

conda create -n my_env python=2
source activate my_env
python --version
mortonjt
  • 650
  • 1
  • 5
  • 23
0

Python interpreter looks for its modules based upon settings in PYTHONPATH. See the answer to How to use Python PATH.

I use Anaconda virtual environments to ease the pain differing version configurations. Read Managing Environments for details.

Community
  • 1
  • 1
naphazg
  • 1
  • 2