Shamshad Alam Shamshad Alam - 2 months ago 5x
Python Question

What does pip install . (dot) mean?

I have a shell script which last line is following:

pip install .

What does it do?

When we run
pip install package-name
, it will install specified package. Similarly when we run
pip install -r requirements.txt
it install all the packages specified in
. But I am not sure what does above command do.


"Install the project found in the current directory".

This is just a specific case of pip install /path/to-source/tree.

To quote the the pip install documentation describing this usage:

pip install [options] [-e] <local project path> ...