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.

Add `pipenv add PACKAGE` sub command which replace `pipenv install PACKAGE`

See original GitHub issue

Is your feature request related to a problem? Please describe.
pipenv install has two responsibilities:

  • Install all packages in [packages] (bare pipenv install)
  • Install specified package and update Pipfile and Pipfile.lock (pipenv install PACKAGE)

This make confused beginners.

Describe the solution you’d like
I suggest to add pipenv add PACKAGE which is equivalent to pip install PACKAGE and to make pipenv install PACKAGE deprecated.

Describe alternatives you’ve considered
Just remove pipenv install PACKAGE.

We are able to edit Pipfile If we want to add package.

Additional context

  • yarn provides yarn add PACKAGE correspond to pipenv install PACKAGE. yarn install PACKAGE was removed.
  • bundler does not provide sub command correspond to pipenv install PACKAGE

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
techalchemycommented, May 25, 2018

Internally the overlap should be cleaned up. From an api perspective, most users want to use high level commands like install so removing api functionality merely because of overlap seems unnecessary.

I’ll run this by Kenneth and see where we land. Initial pass on the workflow is intuitive enough.

0reactions
kennethreitzcommented, Jul 4, 2018

this is not happening

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Usage of Pipenv - Read the Docs
$ pipenv install is used for installing packages into the pipenv virtual environment and updating your Pipfile. Along with the basic install command,...
Read more >
Add a pipenv sync subcommand (remove update ) #1463
pipenv install package_name - Manually add a new package to pipfile and then again generated a new "normal" lock and then sync ....
Read more >
Pipenv: A Guide to the New Python Packaging Tool
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip, virtualenv, and the good...
Read more >
How to resolve Python package dependencies with pipenv?
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again. Alternatively, you can use $ pipenv...
Read more >
pipenv Documentation - Read the Docs
pipenv install --dev -e . $ cat Pipfile ... [dev-packages]. "e1839a8" = {path = ".", editable = true} ... Note: All sub-dependencies will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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