Installing certain packages throws piptools.exceptions.NoCandidateFound exception
See original GitHub issueWhen trying to install jupyter
through pipenv
I get a piptools.exceptions.NoCandidateFound
exception for the entrypoints
package:
Traceback (most recent call last):
File "c:\programs\python36\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\programs\python36\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Programs\Python36\Scripts\pipenv.exe\__main__.py", line 9, in <module>
File "c:\programs\python36\lib\site-packages\pipenv\vendor\click\core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "c:\programs\python36\lib\site-packages\pipenv\vendor\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "c:\programs\python36\lib\site-packages\pipenv\vendor\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\programs\python36\lib\site-packages\pipenv\vendor\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\programs\python36\lib\site-packages\pipenv\vendor\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "c:\programs\python36\lib\site-packages\pipenv\cli.py", line 1387, in install
do_init(dev=dev, allow_global=system, ignore_pipfile=ignore_pipfile, skip_lock=skip_lock, verbose=verbose)
File "c:\programs\python36\lib\site-packages\pipenv\cli.py", line 1042, in do_init
do_lock()
File "c:\programs\python36\lib\site-packages\pipenv\cli.py", line 858, in do_lock
which('python') if project.required_python_version else None
File "c:\programs\python36\lib\site-packages\pipenv\utils.py", line 112, in resolve_deps
resolved_tree = resolver.resolve()
File "c:\programs\python36\lib\site-packages\piptools\resolver.py", line 107, in resolve
has_changed, best_matches = self._resolve_one_round()
File "c:\programs\python36\lib\site-packages\piptools\resolver.py", line 187, in _resolve_one_round
best_matches = set(self.get_best_match(ireq) for ireq in constraints)
File "c:\programs\python36\lib\site-packages\piptools\resolver.py", line 187, in <genexpr>
best_matches = set(self.get_best_match(ireq) for ireq in constraints)
File "c:\programs\python36\lib\site-packages\piptools\resolver.py", line 245, in get_best_match
best_match = self.repository.find_best_match(ireq, prereleases=self.prereleases)
File "c:\programs\python36\lib\site-packages\piptools\repositories\pypi.py", line 116, in find_best_match
raise NoCandidateFound(ireq, all_candidates)
piptools.exceptions.NoCandidateFound: Could not find a version that matches entrypoints>=0.2.2
Tried: (no version found at all)
Note that jupyter
installs fine with either pip
or pip-tools
. You can reproduce this error just by trying pipenv install jupyter
.
OS: Windows 10 Pro 64-bit Python version: 3.6.2 64-bit
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
package in a namespace from pip fails to lock #3324 - GitHub
Issue description installing a package from pip with a namespace, ... all_candidates, self.finder) pipenv.patched.piptools.exceptions.
Read more >pip throws exception during installation of package
You get a Permission denied error because by default pip tries to install its packages system-wide. There's nothing not working properly ...
Read more >Pip Tools and package management - ActiveState
Pip tools are a set of third party command line tools designed to help with Python 3 dependency management by keeping dependencies up...
Read more >Using pip-compile to manage dependencies in your Python ...
So pip install throws an exception here because the new version of numpy that we specified is not compatible with the version of...
Read more >Error with pip install from PyPI in self hosted Gitlab - General
so far I am quite happy with our self hosted Gitlab but I cannot pip install the release of a library I uploaded...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop 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
Top GitHub Comments
fixed! released.
Wow, lightning fast response from @kennethreitz !! Many thanks, it works properly now.