Poetry: No module named pip

Created on 1 Apr 2019  路  5Comments  路  Source: python-poetry/poetry

  • [x ] I am on the latest Poetry version.
  • [x ] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

I just installed poetry from the get-poetry script and try to make it work. I'm using python3.7 . When I tried to add a package, I got this:

Command ['/home/seb/.cache/pypoetry/virtualenvs/poetry-demo-_YOEyiNj-py3.7/bin/python', '-m', 'pip', 'install', '--no-deps', '-U', 'markupsafe==1.1.1'] errored with the following output: /home/seb/.cache/pypoetry/virtualenvs/poetry-demo-_YOEyiNj-py3.7/bin/python: No module named pip

Most helpful comment

Deleting virtualenv for recreate helped me

All 5 comments

Please revert and apt install python3-pip first.

or recreate your virtualenv, just experienced this issue days ago, hope this help

Deleting virtualenv for recreate helped me

Hi, I'm still running in this issue after venv reconfiguration and reinstallation of pip3 on debian machine.
Python version: 3.7
Poetry: 0.12.17

Hi, having this exact problem with poetry when I try to use python 3.8 instead of python 3.6.9 (the default in Ubuntu).
May it be related to ensurepip being disabled for Debian and Ubuntu systems?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jackemuk picture jackemuk  路  3Comments

ghost picture ghost  路  3Comments

probablykasper picture probablykasper  路  3Comments

mozartilize picture mozartilize  路  3Comments

nikaro picture nikaro  路  3Comments