I am a beginner in python and I am using an older version of anaconda which has the 3.5.2 version of python, because I would like to use tensorflow with it. I have some outdated packages that I would like to update with "conda update all". Is there a way to do this without updating python from 3.5 to 3.6, which is incompatible with tensorflow?
Conda update packages except python
4.4k Views Asked by idrispendisbey At
3
There are 3 best solutions below
0
On
You can either update them all manually conda update yourpackage
...or you could update them all conda update --all, and then downgrade python again with conda install python=3.5.2.
0
On
Another simple method: conda update --all python=3.5.2
Replace the python version with your currently installed version. This will update all packages, and since the target version for python is already installed, it will not be updated. This also works with multiple packages: conda update all python=3.5.2 spyder=3.3.6.
Short Answer
Long Answer
Step 1: Dry run to check packages to be updated
Command
Result
Step 2: Get rid of messages from stderr (optional, but clearer)
Command
Result
Step 3: Extract the lines with package names
Command
Result
Step 4: Produce a list of package names
Command
Note: Since there are 2 spaces in front of each package name, the package name is the 3rd field of the line. This leads to the argument
-f3.Result
Step 5: Remove the package(s) not requiring update from the list
Command
Result
Step 6: Update the packages from the list
Command