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.
use
$ pip install ensurepath
...
$ 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.
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, thank you!
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
Built Distribution
File details
Details for the file ensurepath-0.1.0.tar.gz
.
File metadata
- Download URL: ensurepath-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ca7d55261cbad4c3d6526e6d0175e1171cac7174f857e1ea923aedecb5850c |
|
MD5 | f075a4067da6ec26690a6616a0ef904b |
|
BLAKE2b-256 | 09047414f2d0e1d02eb854c542d5415dad799f40f1196b206ec045cfb6f0bb9c |
File details
Details for the file ensurepath-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ensurepath-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b0c918cc46a1f013717acb6570e9424e434d204d151d4e18d5bcc064cdc6c12 |
|
MD5 | 3e2dcf6bb4a4f514c27646252613758f |
|
BLAKE2b-256 | 0212fe027d437576c0964307c6e8af78e5271829b821553d29130c051234d71e |