Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip re-installs carbon and graphite-web packages on every run #1228

Closed
bigunyak opened this issue May 21, 2015 · 3 comments
Closed

pip re-installs carbon and graphite-web packages on every run #1228

bigunyak opened this issue May 21, 2015 · 3 comments
Labels

Comments

@bigunyak
Copy link

Hi there,

While writing puppet manifest files to automate graphite installation I notices that carbon and graphite-web pip packages get re-installed on every run. Pip normally doesn't install already installed packages and exits with "Requirement already satisfied" message unless you specify --upgrade option.
The interesting thing that whisper package does not get re-installed.
I believe the problem is that pip can not figure out that carbon and graphite-web packages are already in the system and pip list command proves that, in the output it produces you'll find whisper package only, carbon and graphite-web are not listed.
I wonder if this problem could be fixed as re-installing the packages with every pip run is not an expected behavior really.
I should mention that the problem is apparently a pretty old one as it was already reported over two years ago here:
http://serverfault.com/questions/416489/how-to-tell-puppet-to-only-install-using-pip-if-a-file-doesnt-exist

Dmitry

@brutasse
Copy link
Member

That's because of the install prefix: carbon and graphite-web are installed under /opt/graphite by default and pip doesn't know about that. Whisper doesn't have a hardcoded prefix.

You should be able to override the prefixed installation by passing --install-option="--prefix=/usr" --install-option="--install-lib=/usr/lib/python2.7/site-packages/" as options to the pip install command (or change to whatever prefix/python version you need).

kjhenner added a commit to kjhenner/pltraining-learning that referenced this issue Jun 17, 2015
By default, the graphite-web package installs in a location that
pip doesn't recognize. Adding install options seems to fix this
issue.
See graphite-project/graphite-web#1228
@piotr1212
Copy link
Member

another reason for #2409

@stale
Copy link

stale bot commented Apr 13, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 13, 2020
@stale stale bot closed this as completed Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants