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.

Pip does not abort when asked to install non-existent extra

See original GitHub issue

Environment

  • pip version: doesn’t matter
  • Python version: doesn’t matter
  • OS: doesn’t matter

Description

Suppose, you wanted to install azure[common]. Well, there isn’t such a package. However, if you do this, azure package (seems like) will be installed.

Expected behavior

Error is shown to the user trying to install a nonexistent package.

How to Reproduce

Run pip install 'azure[common]'.

Output

A long wall of text indicating that things are being installed.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, Dec 20, 2018

@xavfernandez I changed the labels on this issue since it’s really more about extras and not dependency resolution. Lemme know if you disagree. 😃

1reaction
xavfernandezcommented, Dec 18, 2018

We could maybe add an option to abort installation on a missing extra but I’m not really convinced…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Pipenv Errors and How to Solve Them: Why Won't it ...
Locking Issue: Pipfile Contains a Reference to an Inexistent Package. Pipfile won't lock when it tries to install packages that don't exist, i.e.,...
Read more >
pip not installing modules - python - Stack Overflow
On Windows, pip works only when modules are pure python or pypi has wheel package unless you have proper build system. – otterb....
Read more >
pip Documentation
Perform the installation using –no-deps for an extra dose of insurance against installing anything not explicitly listed. This strategy is easy ...
Read more >
pipenv Documentation - Read the Docs
Automatically install required Python version when pyenv is available. ... Will create a virtual env and install dependencies (if it does not exist...
Read more >
Changelog - pip documentation v22.3.1
A package in a wheel is (by definition) not installed, and is not ... Fix an issue where pip did not consider dependencies...
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