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
Built Distribution
File details
Details for the file ensurepath-0.2.4.tar.gz
.
File metadata
- Download URL: ensurepath-0.2.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6fee29ce511ba7e60c4d3b74d26b6c109ee8e370d161a3d4423f2c3c8c33af0 |
|
MD5 | d40ac50d24f749b01d3fdfa82e7981af |
|
BLAKE2b-256 | 4db823bd68188b338eb9cfd403d2c788f511f11166c7322a4bc1301919f576c8 |
File details
Details for the file ensurepath-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: ensurepath-0.2.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09aa96ad3ce3980e8cf0a5edceeebb4bdd6fecc629575b0367da7a7259fc04b5 |
|
MD5 | ec5c301fa5f12444b5b92b38dd57b93c |
|
BLAKE2b-256 | 6e3b16d3538d59b229813399b3a1f35b0dade5a555c1d3d2c322b941ba83b9d4 |