Skip to content
Advertisement

Python 3 – pip install –user flag can’t find installs

I have installed pipenv using pip3, however it can’t be found when I try to run it.

Here is how I have installed pipenv:

JavaScript

So as you can see it is successfully installed.

Here is what happens when I try to run my python file:

JavaScript

Do I have to set a path or something?

Advertisement

Answer

When you pip3 install using the --user flag is creates a directory in your home directory that is hidden called .local. To access those executables we want to add the bin to our path.

This should work:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement