question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pipenv install --system - unsure what it does

See original GitHub issue

https://pipenv.readthedocs.io/en/latest/basics/ reads:

–system — Use the system pip command rather than the one from your virtualenv.

https://pipenv.readthedocs.io/en/latest/advanced/ reads:

Deploying System Dependencies You can tell Pipenv to install a Pipfile’s contents into its parent system with the --system flag: $ pipenv install --system This is useful for managing the system Python, and deployment infrastructure (e.g. Heroku does this).

I am having a hard time understanding what it does with these two descriptions. basic says it uses the pip command from the system. Which I assume means whatever which pip points to when you do not have a venv activated?

advanced says in the headline “Deploying System Dependencies”. This makes it sounds to me it copies the system’s site-packages directories into the virtual environment. I assume that assumption is incorrect?

The rest of the text in advanced makes it sound exactly like I am assuming it does when reading the basic text. But it is worded differently between the two.

To summarize:

  • Is my assumption correct that pipenv install --system installs into the same location as where which pip shows when you have not activated a venv?
  • Could this text be made easier to understand in both basic and advanced?

Thank you for a nice tool.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:22 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
jxltomcommented, Dec 16, 2018

It will make sure pipfile.lock is not out-of-date and only install the packages to your system without creating virtualenv.

0reactions
thernstigcommented, Oct 17, 2019

@frostming No, but others might 😃 Just was confused why it was closed with that particular MR, but I am fine generally closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Usage of Pipenv - Read the Docs
Pipenv is a production-ready tool that aims to bring the best of all packaging worlds to the Python world. It harnesses Pipfile, pip,...
Read more >
"pipenv install --system" == "pip install" - Stack Overflow
pipenv install --system will install the contents of an existing Pipfile into your global pip environment. Using the --system option, ...
Read more >
pipenv Documentation - Read the Docs
Pipenv is a tool that aims to bring the best of all packaging worlds (bundler, composer, npm, cargo, yarn, etc.) to the. Python...
Read more >
Common Pipenv Errors - Towards Data Science
Another common reason locking fails is if a package in the Pipfile only exists as a pre-release version. To allow prereleases of a...
Read more >
Pipenv: Python's Official Package Management tool
So, Pipfile just includes the top-level packages, pipenv is smart enough to install the rest. It also doesn't include requests but it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found