I am installing this https://github.com/wkentaro/pytorch-fcn. It tells me to do this instruction.

git clone https://github.com/wkentaro/pytorch-fcn.git
cd pytorch-fcn
pip install .

What does pip install . mean ? Which folder or file am i running by just typing dot ? setup.py ?

  • 3
    As a more general answer, . in both Unix and Windows means "the current directory". – chrylis Aug 21 at 7:32
  • pip displays a page of help text, which tells you that pip install --help will give you help text specific to pip install. – Roger Lipscombe Aug 21 at 9:15
up vote 4 down vote accepted

Basically you are specifying the location from which the pip package manager to extract the package information from.

# Get the Source code
git clone https://github.com/wkentaro/pytorch-fcn.git

# Change into the cloned git repository:pytorch-fcn
cd pytorch-fcn

# Install the package definitions from current location i.e. pytorch-fcn.
pip install .

Here is a brief description: pip executes the setup.py which loads the requirements.txt which has textual representation of the dependency packages.


  1. Available here is the official documentation of pip.
  2. For better python development workflow refer here for why you should use pip and virtualenv.
  • Hello thanks for the reply. I have only used pip to do installations and have no idea how it works. What do you mean by package definitions ? Is there a specific file in pytorch-fcn that pip executes ? – kong Aug 21 at 5:20
  • @kong updated the answer. – AmeyaVS Aug 21 at 5:35

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.