- Install a new python version from https://www.python.org/downloads/windows/ the 64 bit web installer
- Make sure your PATH only contains the paths to the new version
- Delete the old python
- Restart your pc and test in cmd with
python -V
- Update global setuptools by running in cmd (sudo)
python -m pip install -U setuptools. If this fails with a PermissionError, trypip install setuptools --upgrade --ignore-installed. - Update global pip by running in cmd (sudo)
easy_install -U pipand check withpip -V.
- In project, in PyCharm open terminal and check venv is activated (it says
(venv)in front of the line) - Install the package
pip-upgraderif needed, it updates all dependencies in requirements.txt - You might have to remove the virtual environment and make a new one (inherit global packages).
- You may have to upgrade pip using the same command as before.
- Run
pip-upgrade.
(Windows) To update the python behind the calculator button, edit HKLM/software/microsoft/windows/currentversion/explorer/appkey/18/ShellExecute in the registry.