~$ which python
/usr/local/bin/python
It seems that the fabric does not successfully to installed on my mac.
And I try to perform the step:
~$ sudo easy_install pip
Password:
Searching for pip
Best match: pip 1.4.1
Processing pip-1.4.1-py2.7.egg
Removing pip 1.0.2 from easy-install.pth file
Adding pip 1.4.1 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip-2.7 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
~$ sudo pip install fabric
Requirement already satisfied (use --upgrade to upgrade): fabric in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Fabric-1.8.3-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10,<1.13 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from fabric)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Requirement already satisfied (use --upgrade to upgrade): ecdsa in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Cleaning up...
~$ fab
-bash: fab: command not found
~$ which fab
~$
3. address@hidden:~# fab
bash: fab: command not found
What’s your PATH? — Where’s fabric installed to?
I was going to say have a look in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages but on my system (10.9 as well) it’s /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages — perhaps there’s something there.
For a couple of major versions now I’ve been using “sudo easy_install pip” then “sudo pip install fabric” to bootstrap this[*].
This leads to this:
~ $ which fab
/usr/local/bin/fab
~ $ which pip
/usr/local/bin/pip
Hopefully that helps somehow…
Regards,
Carlton
[*] The other two I go for globally is virtualenv and virtualenvwrapper. The other time I need easy_install is for readline (when wanting to use IPython) — but I do this from within the virtualenv[**].
[**] Should be able to forget a lot of this soon.