Reputation: 4264
Is there an easy way to switch between using Anaconda (Python 2) and Anaconda3 (Python 3) from the command line? I am on Windows 10.
Upvotes: 4
Views: 15867
Reputation: 547
If you are using Linux/Mac OS, edit your ~/.bashrc. For example, if you do not wanna use anaconda3, comment the line which add path_to_anaconda3 to your system PATH.
Upvotes: 0
Reputation: 303
use the "activate" batch file
activate c:\anaconda3
activate c:\anaconda2
Upvotes: 7
Reputation: 504
In CMD as long as both Python 2 and Python 3 are installed through Anaconda:
conda create -n python2 python=2.7 anaconda
conda create -n python3 python=3.4 anaconda
conda create -n python3 python=3.5 anaconda
If you have 3.4, run line 2. If you have 3.5, run like 3. This will create 2 environment variables,
python2
This will execute Python 2.
python3
This will execute Python 3.
Upvotes: 7