Unable to install package from private repository
See original GitHub issueI am attempting to install from a private repository. The output indicates the package and dependencies were installed but when pipenv is “Locking [packages] dependencies…”
I receive an error indicating: pip.exceptions.InstallationError: Could not detect requirement name, please specify one with #egg=
Describe your environment
- macOS 10.13.2
- Python version: Python 3.6.3
- Pipenv version: pipenv, version 9.0.3
Expected result
I am expecting for the package to install and the lockfile to be written.
Actual result
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Traceback (most recent call last):
File "/Users/clayk/Library/Python/3.6/bin/pipenv", line 11, in <module>
sys.exit(cli())
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/cli.py", line 1934, in install
do_lock(system=system, pre=pre)
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/cli.py", line 1102, in do_lock
pre=pre
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/utils.py", line 545, in resolve_deps
resolved_tree = actually_resolve_reps(deps, index_lookup, markers_lookup, project, sources, verbose, clear, pre)
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/utils.py", line 470, in actually_resolve_reps
constraint = pip.req.InstallRequirement.from_editable(dep[len('-e '):])
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/patched/pip/req/req_install.py", line 143, in from_editable
editable_req, default_vcs)
File "/Users/clayk/Library/Python/3.6/lib/python/site-packages/pipenv/patched/pip/req/req_install.py", line 1196, in parse_editable
"Could not detect requirement name, please specify one with #egg="
pip.exceptions.InstallationError: Could not detect requirement name, please specify one with #egg=
Steps to replicate
execute pipenv install -e git+ssh://path/to/private/Redacted.git@v1.1.8#egg=privatepackagename
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:40 (15 by maintainers)
Top Results From Across the Web
Can't install package from private GitHub repository with Yarn ...
In my case, my ssh key was generated years ago and is not "strong" enough nowadays, so I can git clone my private...
Read more >Unable to install package from private npm registry
I've created a single private project that I'm only using as a centralized, remote NPM package repository. I'm able to publish packages ok....
Read more >Unable to install packages from private git repository inside ...
I am trying to clone a private repository inside my docker container using ssh keys. I am using my own ssh keys by...
Read more >gh-actions for r-cmd-check on package on private repository
I have a package on private repository that imports another package ... Can't install dependency myorg/pak2 * myorg/pak2: Can't find GitHub ...
Read more >Installing Private Python Packages - Read the Docs
If you have private dependencies, you can install them from a private Git ... Pip supports installing packages from a Git repository using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I realize this issue is closed, but I have the exact same problem as @grudelsud (
failed with error code 128 in None
) and I’m on the latest version of pipenv. Not sure if a fix was deployed?@techalchemy To install a private github repository from pip the syntax is
pip install git+ssh://git@github.com/username/repo.git@branch#egg=blah
This worked properly with pipenv up to version 9
pipenv install git+ssh://git@github.com/username/repo.git@branch#egg=blah
but with pipenv 11
pipenv install git+ssh://git@github.com/username/repo.git@branch#egg=blah
returns with the an error forgit clone -q git@github.com/username/repo.git /tmp/temp
it’s because the correct syntax should begit clone -q git@github.com:username/repo.git /tmp/temp
with:
and not/