1

I am running python3 inside a virtualenv which I created as follows

==> python3 -m venv venv

==> source venv/bin/activate

==> python
Python 3.6.5 (default, Apr 25 2018, 14:23:58) 
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

My web-app has a requirements file with the python package dependencies

What is the difference between using pip3 vs pip to install the dependencies

i.e.

==> pip3 install -r requirements

vs

==> pip install -r requirements
4
  • 2
    pip2 is python2 and pip3 is python3. Use the whereis pip command to determine where the executables are located, but if you are in a python3 virtualenv, pip is most certainly equivelent to pip3. Commented Aug 6, 2018 at 22:17
  • That's what I thought but thanks for confirming!! Commented Aug 8, 2018 at 19:13
  • I added as an answer. If you feel it answered your question, I would appreciate an acceptance Commented Aug 8, 2018 at 19:37
  • Done. Thanks for the answer. Commented Aug 11, 2018 at 0:22

1 Answer 1

3

pip2 is python2 and pip3 is python3. Use the whereis pip command to determine where the executables are located, but if you are in a python3 virtualenv, pip is most certainly equivalent to pip3.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.