user1581390
user1581390

Reputation: 1998

Installing Anaconda 2 Twice in Different Folders

Is it possible to install Anaconda 2 twice in different folders without any issues?

I need an older version for one package and a newer one for another.

Upvotes: 0

Views: 976

Answers (1)

ilke444
ilke444

Reputation: 2741

If your use case is only for using different versions for the same package, I would suggest to create different environments. For example, assume that you have a version for pyqt in your current environment, but you need a previous version for a dependency. The following command will create a new environment named oldqt, with version 4 of pyqt.

conda create -n oldqt pyqt=4

Afterwards, you can activate the new environment as below.

MacOS:

source activate oldqt

Windows

conda activate oldqt

Note that you need to install everything into your new environment, it is like a clean installation of anaconda. More information on conda environments is here.

Upvotes: 1

Related Questions