Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does pipenv install packages?

Tags:

I'm using vscode, and my editor shows:

enter image description here

The red is showing that it can't import those packages. I'm using a pipenv virtual environment and for the life of me, I can't figure out where it installs the packages.

If I could, I could just add that to $PYTHONPATH and life would be better.

Any help?

like image 785
Shamoon Avatar asked Feb 23 '19 21:02

Shamoon


People also ask

Where are packages installed in Pipenv?

Turns out it's surprisingly simple. Go to the root of your project & open up a new terminal. Use the following commands to open a shell and get the location of the virtual environment. If you open up this in the file explorer, you'll find exactly where the modules are being installed.

Where is Pipenv executable installed?

Discover the proper executable path as described in the pipenv installation procedure and enter the target string in the Pipenv executable field, for example: C:\Users\jetbrains\AppData\Roaming\Python\Python37\Scripts\pipenv.exe (Windows) or /Users/jetbrains/. local/bin/pipenv (macOS).

What does Pipenv install do?

$ pipenv install is used for installing packages into the pipenv virtual environment and updating your Pipfile. The user can provide these additional parameters: --two — Performs the installation in a virtualenv using the system python2 link.


2 Answers

pipenv installs packages in ~/.local/share/virtualenvs/

To find the complete path, run pipenv --venv

like image 108
forzagreen Avatar answered Oct 08 '22 20:10

forzagreen


On windows machines start pipenv pipenv shell then where python to get the path to your scripts

like image 37
Isaac Sekamatte Avatar answered Oct 08 '22 18:10

Isaac Sekamatte