1

In installed Python 3.4 using Homebrew on my Mac OSX Mavericks

When I do which python3, I get

/usr/local/bin/python3

On checking which python I get

/usr/bin/python

which is the system installed version of Python

I intend to install virtualenv and thus ran pip install virtualenv But I get

-bash: pip: command not found

What am I missing?

asked Jul 18, 2014 at 14:13
4
  • Do you have pip3.4 or pip3 found? Commented Jul 18, 2014 at 14:15
  • @alecxe how do I find them? Commented Jul 18, 2014 at 14:18
  • At least, just run them and see if any errors would show up. Commented Jul 18, 2014 at 14:19
  • Do you have PIP installed? (probably not) pip.readthedocs.org/en/latest/installing.html Commented Jul 18, 2014 at 14:21

3 Answers 3

2

I suggest making a system installation of pip, virtualenv and virtualenvwrapper. Since pip is not found, run sudo easy_install pip to get it. I would then set up your .bashrc or .bash_profile to activate the virtualenvwrapper.sh automatically.

answered Jul 18, 2014 at 14:18
Sign up to request clarification or add additional context in comments.

2 Comments

But I checked the installation log of homebrew and I'm pretty sure pip was installed.
So what's the result of which pip3?
1

Try this

pip3 install virtualenv

answered Feb 6, 2017 at 11:37

Comments

1

I've had this problem since I found out that I need to reinstall pip in my env again. try this in your env:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

then

python get-pip.py

answered May 3, 2019 at 22:15

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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