

This may be helpful if you have more than one python versions installed and dont know how to tell your ide’s to use a specific version. Sometimes only you can see root and your new Python environment, so root is your first anaconda environment!Īlso this is Jupyter. Then before use Spyder you can choose Python environment like below! If you have already Anaconda 3 then type in terminal: python2 -m pip install ipykernel If you have already Anaconda 2 type in Terminal: python3 -m pip install ipykernel If you are using Spyder and Jupyter in Anaconda environmen and, You don’t have to download both Anaconda. Maybe my answer is late for you but I can help someone who has the same problem! Solution 2:Įdit!: Please be sure that you should have both Python installed on your computer. You can use conda to install packages in that environment later, either by using the -n python2 flag to conda, or by activating the environment. If you don’t want all of Anaconda, you can replace anaconda in the command above with whatever packages you want.

This will put that environment (typically ~/anaconda/envs/python2) in front in your PATH, so that when you type python at the terminal it will load the Python from that environment. You can activate this environment with source activate python2

This will create an environment named python2 that contains the Python 2.7 version of Anaconda. The easiest way to create an environment for Python 2.7 is to do conda create -n python2 python=2.7 anaconda Conda, the package manager for Anaconda, fully supports separated environments. There is no need to install Anaconda again. For example, I wish I could write like conda install scikit-learn for Python 3 environment and something like conda2 install scikit-learn for Python 2. Ideal way is to have totally separate Python environments. I need both versions to work with iPython and Spyder IDE. Now I’m wondering how to install properly second Anaconda (for work) with Python 2? I’ve just installed XCode (for c++ compiler) and Anaconda with the latest Python 3 (for myself). Question or problem about Python programming:
