Upgrading python on Windows 10’s Bash Shell Upgrading python on Windows 10’s Bash Shell linux linux

Upgrading python on Windows 10’s Bash Shell


First, I'd strongly encourage you to make sure you're running Windows 10 Fall Creators Update (or later).

Secondly, I'd recommend adding the apt upgrade step below:

sudo add-apt-repository ppa:jonathonf/python-3.6sudo apt updatesudo apt upgradesudo apt install python3.6

The upgrade step ensures that all your installed packages are upgraded to their latest version, and can often fix "errors while processing" other packages' installation.


That's a weird error, there might be something wrong with your dpkg. You can always try building python from source. This works in regular out-of-the-box Ubuntu, so it should run on Windows too.

sudo apt-get install zlib1g-devwget www.python.org/ftp/python/3.6.0/Python-3.6.0.tgztar -xf Python-3.6.0cd Python-3.6.0./configure --enable-optimizationsmakesudo make install

Save those commands to a file called python.sh, then run

chmod 755 python.sh./python.sh

It can take a while, though, so be patient