How to upgrade from Python 3.5 to 3.6?

Viewed 23757

My machine runs on Windows and I tried to find out about it but people only talk about mac and brew on other discussions. I want to ask if there is a command line which I need to write which can upgrade the core or I have to download 3.6 package from the official website and then uninstall the 3.5 and then install 3.6 (and I don't want to do that because it sounds mess to me)

I have 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)]

Any help?

3 Answers

If someone's using MacOS, Linux or WSL then can use asdf.

  1. Clone the asdf repository
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.1
  1. Edit ~/.bashrc file and add $HOME/.asdf/asdf.sh

  2. Restart your terminal and you'll be able to use asdf

  3. In order to add the plugins, in your case Python, you can run this -

asdf plugin add python
  1. List all the versions of python -
asdf list all python
  1. Install the version as per your requirement (can install the latest one) -
asdf install python latest
  1. Set the installed version globally, locally (for a particular project) or for this particular shell .
asdf global python latest
Related