Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it ok having both Anacondas 2.7 and 3.5 installed in the same time?

I am using currently Anaconda with Python 2.7, but I will need to use Python 3.5. Is it ok to have them installed both in the same time? Should I expect some problems?
I am on a 64-bit Win8.

like image 911
GileBrt Avatar asked May 25 '16 16:05

GileBrt


People also ask

Can I install multiple versions of Anaconda?

can I install multiple versions of Python on my machine? can I install multiple versions of Anaconda? You can but because of the answer above you don't need to and shouldn't. Instead of multiple Anaconda versions, just create multiple environments with the versions of packages you need.

Can I install Python 3.8 with Anaconda?

Anaconda supports Python 3.7, 3.8, 3.9 and 3.10. The current default is Python 3.9.

Do we need to install Python separately after installing Anaconda?

The answer for you will be No. if you already had anaconda installed in your laptop, once you open it up you will realized you can install Python within the software. Anaconda will not only included Python, R also will be included.

Can I install Anaconda and Python at the same time?

Setting up Anaconda with other Pythons But the few options you are presented with make all the difference when getting Anaconda to coexist with other Python installations. The first option worth changing is in the “Select Installation Type” menu, where you choose between installing Anaconda for Just Me or All Users.


2 Answers

I use both depending on who in my department I am helping (Some people prefer 2.7, others 3.5). Anyway, I use Anaconda and my default installation is 3.5. I use environments for other versions of python, packages, etc.. So for example, when I wanted to start using python 2.7 I ran:

 conda create -n Python27 python=2.7 

This creates a new environment named Python27 and installs Python version 2.7. You can add arguments to that line for installing other packages by default or just start from scratch. The environment will automatically activate, to deactivate simply type deactivate (windows) or source deactivate (linux, osx) in the command line. To activate in the future type activate Python27 (windows) or source activate Python27 (linux, osx). I would recommend reading the documentation for Managing Environments in Anaconda, if you choose to take that route.

Update

As of conda version 4.6 you can now use conda activate and conda deactivate. The use of source is now deprecated and will eventually be removed.

like image 90
Grr Avatar answered Sep 21 '22 20:09

Grr


My understanding is you don't need to install Anaconda again to start using a different version of python. Instead, conda has the ability to separately manage python 2 and 3 environments.

like image 28
Padraic Avatar answered Sep 18 '22 20:09

Padraic