Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make more clear that you need to update pip to use pipenv #803

Closed
sametmax opened this issue Oct 1, 2017 · 2 comments
Closed

Make more clear that you need to update pip to use pipenv #803

sametmax opened this issue Oct 1, 2017 · 2 comments

Comments

@sametmax
Copy link

sametmax commented Oct 1, 2017

Trying to get install pipenv in a docker env, I got:

Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1006, in check_if_exists
    self.satisfied_by = pkg_resources.get_distribution(str(no_marker))
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 535, in get_distribution
    dist = get_provider(dist)
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 415, in get_provider
    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
  File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 695, in find
    raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (pip 8.1.1 (/usr/lib/python3/dist-packages), Requirement.parse('pip>=9.0.1'))

This of course no longer happens once I run pip install --upgrade pip

While I understand it's probably not appropriate to list pip as a dependency and require an upgrade, there should be a big warning in the installation section of the README and the doc with appropriate advices.

One possible solution: it's easy to pip install pipsi --user and then python -m pipsi pipenv. You never have to worry about having the bin in PATH, or to have pip at the proper version.

@erinxocon
Copy link
Contributor

erinxocon commented Oct 2, 2017

Hi @sametmax thanks for your suggestion! I don't think a large message is needed, the traceback is pretty explanatory. I've not experienced this issue in the many months I've been using pipenv. Whenever I'm creating a new environment I do pip install --uprgrade pip. Most users have the most recent pip installed. I'm gonna add a small note to the installation section, pending approval from @kennethreitz, and close this issue!

@erinxocon
Copy link
Contributor

After looking at the markup for the docs, I don't really see a good place for it. I'm not gonna add this to the docs unless @kennethreitz wants to!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants