-1

I am following the solution in this thread here to "properly" install pipenv on Mac.

At the last step, when running the command exec zsh, I receive this error message:

(eval):46: command not found: complete
Usage: pipenv [OPTIONS] COMMAND [ARGS]...
Try 'pipenv -h' for help.

Error: No such option: --completion Did you mean --python?

What does this error mean? Does it mean pipenv has failed to installed? Because I am able to fire up a virtual environment with pipenv shell

Tristan Tran
  • 1,351
  • 1
  • 10
  • 36

2 Answers2

1

In your .zshrc:

Try replacing the line eval "$( pipenv --completion )" with eval "$(_PIPENV_COMPLETE=zsh_source pipenv)"

Source: https://github.com/pypa/pipenv#shell-completion

0

These lines are no longer needed to be added within .zshrc for for magic shells:

eval "$( pipenv --completion )" eval "$(_PIPENV_COMPLETE=zsh_source pipenv)"

The error is due to the completion flag being removed from Pipenv since the shell already has completion by using the tab button.

"The last maintainer had dropped the --completion flag and we don't intend to add it back. [They] also recently fixed a different bug around completion being broken."

Source: https://github.com/pypa/pipenv/issues/4991