Closed grantnicholas closed 4 years ago
I guess we can just try and fallback to /usr/local/bin/
when looking for the bin path instead. python -m pip
is also a good idea and I think we can add an environment variable called WAGON_PIP_PATH
just in case. WDYT?
Hi, 0.9.1 is now using python -m pip, so you shouldn't have this problem any more.
(First, cool tool! Python needs something like a fat-jar equivalent from the java world)
If you look at
_get_pip_path
you can see it does not handle pip installs on machines that are:/usr/bin/pip
https://github.com/cloudify-cosmo/wagon/blob/master/wagon.py#L448-L449
This happened for me because pip is installed here (default location by install from get-pip.py):
Which results in the following when I try to create a package:
Possible fix?
You can invoke pip without knowing it's exact path using python's '-m' flag:
python -m "pip"