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!
Metadata
Release files for ensurepath 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ensurepath-0.2.6.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ensurepath-0.2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / ensurepath-0.2.6.tar.gz
| Download URL | ensurepath-0.2.6.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c4405842a864b8721ff975546c493ce8fb42d49abf5aff88bcc273f2f9810e7
|
|
BLAKE2b-256 checksum How to use checksums |
cdde0dd8640dc584fae2e279e1c8325b54c6f47daaa1a2f99a64be699aaf3fb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|
Release files / ensurepath-0.2.6-py3-none-any.whl
| Download URL | ensurepath-0.2.6-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b27579c2cfaed72532905ca84e834f5491ee63da8a11b31b5988a908b8ff098a
|
|
BLAKE2b-256 checksum How to use checksums |
15030b5c43f267f7bc0e06a5750fc6ea5380218312c13c829ce9aa4884fb44d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.3
|