Reputation: 4575
I installed python 3.7 with anaconda on my unbuntu server, and created a virtual env named py36. I accidentally created it as a python 2.7 env. Is there a way to update the virtual env py36 and all it's packages to python 3.5?
Upvotes: 0
Views: 191
Reputation: 19665
You can activate the environment and install whichever version of Python you want:
conda activate py36
conda install python=3.X
This will automatically update all the packages to the version that you want.
Upvotes: 1