mitsuhiko / pipsi

pip script installer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac OS. Pipenv cannot be found for python3: from pipenv import cli ModuleNotFoundError: No module named 'pipenv'

idchlife opened this issue · comments

I'm new to python and pipsi, but getting error since simply installing pipenv via pipsi:

[15:28:38] igorandreev:players-service $ pipenv                                                                                                                                                      [15:28:38]
Traceback (most recent call last):
  File "/Users/igorandreev/.local/bin/pipenv", line 7, in <module>
    from pipenv import cli
ModuleNotFoundError: No module named 'pipenv'

[15:28:39] igorandreev:players-service $ python3 -m pipenv shell                                                                                                                                     [15:28:39]
/usr/local/opt/python3/bin/python3.6: No module named pipenv

Here is my path:

export PATH="$(brew --prefix homebrew/php/php71)/bin:$HOME/.local/bin:$PATH"

I had similar issues. Then I found this pipsi bootstrap script and everything works fine now: https://gist.github.com/elgertam/2d50ea280d2395dd2bbedbb169c59d2e/0bba09f4ced1d702654fe51d5db75133a34749ef
Just had to cleanup beforehand.

@sanyer That script does not work for me. It get this error on any thing I try to install with pipsi. Using homebrewed python 3.6 on High Serria.

@robo-hamburger try cleaning all left-overs from previous installations before running this script, e.g.:

pipsi uninstall pipsi
/usr/bin/python -m pip remove pipsi
/usr/local/bin/python2 -m pip remove pipsi
/usr/local/bin/python3 -m pip remove pipsi

and also remove pipsi stuff from ~/.local/: venvs and all links to binaries from venvs in bin

I somehow resolved this issue within raging and copy-pasting many many lines from internet, so closing this issue for now.

(sorry future guys, I cannot find how I remember this issue :( )