Skip to main content

upgrade pip and setuptools versions used by venv

Project description

https://sourceforge.net/p/upgrade-ensurepip/code/ci/default/tree/_doc/_static/license.svg?format=raw https://sourceforge.net/p/upgrade-ensurepip/code/ci/default/tree/_doc/_static/pypi.svg?format=raw https://sourceforge.net/p/oitnb/code/ci/default/tree/_doc/_static/oitnb.svg?format=raw https://bitbucket.org/ruamel/ryd/raw/default/_doc/_static/ryd.svg

Once you find that /your/installed/version/bin/python3 -m venv /some/venv followed by /some/venv/bin/pip install some_package gives a message that there is an update for pip, this package can update the wheel files used by ensurepip to the latest versions available on pypi.

You can do this upgrade by running:

/your/installed/version/bin/python3 -m upgrade_ensurepip

A heck against the sha256 is made before saving the newly downloaded wheels to disc. After finding and downloading newer versiosn, the /your/installed/version/lib/pythonX.Y/ensurepip/__init__.py file is updated as it hard-codes the versions of the wheels used. Before changing, a backup of the original is made if such a backup does not yet exists.

Old wheels are preserved, so only backup file __init__.py.org located under /your/installed/version/lib/pythonX.Y/ensurepip/ needs to be copied back in case you encounter problems.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upgrade_ensurepip-0.1.3.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

upgrade_ensurepip-0.1.3-py2.py3-none-any.whl (5.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file upgrade_ensurepip-0.1.3.tar.gz.

File metadata

  • Download URL: upgrade_ensurepip-0.1.3.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.2

File hashes

Hashes for upgrade_ensurepip-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8bcfe81c6a8a6a26e015c6459dd8fd428792e4600be3e861d8e7215659d31975
MD5 a573002225b5da92ae6405c0e841bf4d
BLAKE2b-256 5c82454abc0bffba0a457ea082faf1153a4581c48376f888ac8bd1ee6fa1ca29

See more details on using hashes here.

File details

Details for the file upgrade_ensurepip-0.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: upgrade_ensurepip-0.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.2

File hashes

Hashes for upgrade_ensurepip-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7c22c114267d97bc54dec9651d02209237d64ea994b8630be6deadf336ee7980
MD5 e433775ed6e45db01797aa48fd82881e
BLAKE2b-256 a69304bfc5c921a3d0002f581cb76637598a09ef677d3ebfdc60e7b10c98829b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page