Skip to main content

Ensure python, pip and with pip installed binarys (scripts for win) are in your PATH variable.

Project description

ensurepath

Does exactly one thing:

  • ensure that python, pip and with pip installed binarys are in your path.

USAGE

If python command is available:

$ python -m pip install ensurepath
...
$ python -m ensurepath
...

Otherwise:

$ [path to python] -m pip install ensurepath
...
$ [path to python] -m ensurepath
...

Why

The need occured for me when we started using pipx in a python class just to use pipx ensurepath. That is because the micrsoft store (msstore) install of python does add python and pip to the path, but not the scripts folder where with pip installed shell commands are located. I tried to also make this script add pip and python to the path if they are not in yet, but have not tested this further.

msstore

If you're installing python from the msstore and also want that the commands that are installed with the installed packages to just work on the comandline, you're exactly right here!

Issues

If you encouter any error feel free to create an issue and I will try to help, when I have the time. But this is not a python install support service ;-)

This how not been tested thoroughly use at your own risk!

Thanks

This script only uses the userpath module from ofek, without you this wouldn't be possible! Thanks for your great work on userpath!

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

ensurepath-0.2.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

ensurepath-0.2.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file ensurepath-0.2.5.tar.gz.

File metadata

  • Download URL: ensurepath-0.2.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for ensurepath-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b88d9e115c25bb061391ad916ee77896bd8ecb1423b0e7e243d497fe0b862ca3
MD5 00e259fd06c724852f65a8814b95e61c
BLAKE2b-256 b222526b2741a84802017074d764933d5f30c02001fd7816a636bd4594a8554f

See more details on using hashes here.

File details

Details for the file ensurepath-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: ensurepath-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for ensurepath-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 247b4f7a74ff0c30ffa347e3811f5cfc882cb0d02f84fd15ffec8e4720c38a80
MD5 408a17fb3d1ee9cf4764d70a8c3e0fe5
BLAKE2b-256 08d63b648c3e6d3b90c0de2ac81fbcb67f53b2ee39a0a5c00f5ca2dd151e8e6d

See more details on using hashes here.

Supported by

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