How do I revert to a previous package in Anaconda?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping
--
Chapters
00:00 How Do I Revert To A Previous Package In Anaconda?
00:21 Accepted Answer Score 201
00:31 Answer 2 Score 180
01:12 Answer 3 Score 2
01:25 Answer 4 Score 0
02:09 Thank you
--
Full question
https://stackoverflow.com/questions/2397...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #anaconda #conda
#avk47
ACCEPTED ANSWER
Score 201
I had to use the install function instead:
conda install pandas=0.13.1
ANSWER 2
Score 180
For the case that you wish to revert a recently installed package that made several changes to dependencies (such as tensorflow), you can "roll back" to an earlier installation state via the following method:
conda list --revisions
conda install --revision [revision number]
The first command shows previous installation revisions (with dependencies) and the second reverts to whichever revision number you specify.
Note that if you wish to (re)install a later revision, you may have to sequentially reinstall all intermediate versions. If you had been at revision 23, reinstalled revision 20 and wish to return, you may have to run each:
conda install --revision 21
conda install --revision 22
conda install --revision 23
ANSWER 3
Score 2
I know it was not available at the time, but now you could also use Anaconda navigator to install a specific version of packages in the environments tab.
ANSWER 4
Score 0
You can do this in 2 ways.
1. Remove previous version and Freshly install desired version
conda remove <package_name>
Search for your package version whether it is available in conda repository.
conda search <package_name>
If it is available in the list;
conda install <package_name>=<version>
If you are going for a newer version, it may not be available. Then go for pip install <package_name> pip packages work fine with Anaconda distribution but they encourage using conda.
2. Install by downgrading package Search for package availability
conda search <package_name>
conda install <package_name>=<version>
It may ask you to downgrade some dependencies. (optional) Type y and hit enter.