Why "pip" on my MBA?
I always tell people how much I'm very fond of my 11" MacBook Air (MBA), it comes with a number of useful tools. For development platform, I usually use tools on my Ubuntu desktop running as a virtual machine on my 15" MacBook Pro (MBP). But since I have an old MBP, it is supper heavy and I don't want to lug it around all day, especially on the weekend where I want to go hang out with friends. So my alternative is to use either my lighter weight 11", or an Acer 720 Chromebook when going around town. For a day that I have a couple of hours of free time, I think my MBA win the day. I can actually do some development work connecting back to my lab to test my code and etc... all by using my MBA. I have tried the CB but unfortunately, we don't have any VPN option for CB, it is rather unfortunate since the CB is actually pretty nice.
Anyway, I think I digress... as usual. Today, I just want to make a note that on the Mac OS X, I can use easy_install to install pip.
What is "easy_install"
Looking at /usr/bin/easy_install, I found out that it is a python script writing to simplify installation of Python's component. If you know Python, it is pretty simple to read and understand. So why wait... go there an cat it. *giggle*
Screen scrape of pip installation
Here is my screen scrape of the session. It is very simple - as long as you have an ability to "sudo" or being an "administrator" on your Mac.
reia-mba:~ reia$ sudo easy_install pip
Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 7.1.2
Downloading https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196
Processing pip-7.1.2.tar.gz
Writing /tmp/easy_install-DqikW9/pip-7.1.2/setup.cfg
Running pip-7.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-DqikW9/pip-7.1.2/egg-dist-tmp-sI6Tr4
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Adding pip 7.1.2 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Installed /Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
reia-mba:~
Untile next time... Muach!!!!
No comments:
Post a Comment