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.

`--extra-index-url` does not work with `pipenv install`

See original GitHub issue

Is the only way to install package on private index (specifically one which has public subdependencies on PyPI) to “manually” fill the “Pipfile” and do pipenv install as implied here?

In other words, pipenv install pkgname --extra-index-url <link-to-index> doesn’t work (neither does pipenv install pkgname -i <link-to-index> (as it shouldn’t since -i corresponds to --index-url which is not desirable in this context.)

Describe your environment
  1. OS Type: windows 7
  2. Python version: $ python -V 2.7
  3. Pipenv version: $ pipenv --version 9.0.3
Expected result

I expect for package to be installed from the private index, and its sub-dependencies (specified in its setup.py) be installed from the public index (PyPI). Ideally the additional [[sources]] paragraph would be added to the Pipefile and the private package’s “index” key would point to this “extra-index-url” as its source.

I understand that this service just may not be provided by pipenv (yet?), but I wonder if there is some existing solution that i’m not finding.

Actual result

pipenv can’t find the private package to collect/install it. This is using either the -i or --extra-index-url as mentioned above.

Error:  An error occurred while installing pkgname!
  Could not find a version that satisfies the requirement pkgname (from versions: )
No matching distribution found for pkgname
Steps to replicate
  • Create package called pkgname.
  • Use install_requires in its setup.py to specify some public package as a dependency (e.g., pandas)
  • Upload it to private index.
  • Try to install it with pipenv

pipenv install pkgname --extra-index-url <link-to-index>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

17reactions
kennethreitzcommented, Feb 17, 2018

You need to specify the index in your pipfile:

https://docs.pipenv.org/advanced/#specifying-package-indexes

2reactions
kennethreitzcommented, Mar 20, 2018

probably within the next few days

Read more comments on GitHub >

github_iconTop Results From Across the Web

extra-index-url is not getting used properly when used in pip ...
I can't figure out what it is I'm doing wrong with the pip.conf file. It works as well if I install the package...
Read more >
Advanced Usage of Pipenv - Read the Docs
There are some known issues with using private indexes, related to hashing. ... You can tell Pipenv to install a Pipfile's contents into...
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 >
pipenv install [package] - Fig.io
--deploy, Enforce that your Pipfile.lock is up to date in deployment ... --extra-index-url <URL>, URLs to the extra PyPI compatible indexes to query...
Read more >
extra-index-url` to install private packages from GitLab CI
"pip install 'B==0.9.0' --index-url https://. ... but found a very important problem: since --extra-index-url is “insecure by design” (there ...
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