Moinuddin Quadri
Moinuddin Quadri

Reputation: 48047

pip3: Command Not Found on OS X

While installing python packages, I am getting error as:

mquadri$ pip3 install -r requirements.txt
-bash: pip3: command not found

Path to bin /usr/local/bin is present in $PATH:

mquadri$ echo $PATH

/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Content of /usr/local/bin:

mquadri-ltm:PaiWeb mquadri$ ls -al /usr/local/bin/
total 47416
# ... some packages
-rwxr-xr-x    1 mquadri  admin       281 Nov 25 00:27 pip
-rwxr-xr-x    1 mquadri  admin       283 Nov 25 00:27 pip2
-rwxr-xr-x    1 mquadri  admin       287 Nov 25 00:27 pip2.7
lrwxrwxr-x    1 mquadri  admin        66 Aug 18 16:23 pip3 -> ../../../Library/Frameworks/Python.framework/Versions/3.4/bin/pip3
lrwxrwxr-x    1 mquadri  admin        68 Aug 18 16:23 pip3.4 -> ../../../Library/Frameworks/Python.framework/Versions/3.4/bin/pip3.4
# ... some more packages

On checking the folder pointed by the symlink to pip3 and pip3.4. i.e.

/Library/Frameworks/Python.framework/Versions/3.4/bin/

these are missing from there. Any possible what might would have caused that? (Earlier it use to work, though haven't used from long time)

Upvotes: 2

Views: 4664

Answers (1)

Hong
Hong

Reputation: 172

It looks like you might not have python3 installed at all anymore?

Try just reinstalling python3, it comes with its own version of pip3 so you should be good after that. If it thinks python is stored in /Library/Frameworks then it means you probably installed it via some sort of installer instead of something like homebrew.

Upvotes: 1

Related Questions