[591] Installing easy_install with ez_setup.py (1/1)
in series: Installing easy_install with ez_setup.py
video tutorial by Ian Ozsvald
Name:
[002] Ian Ozsvald
Member:
51 months
Authored:
181 videos
Description:
I am the co-founder of ShowMeDo (see http://showmedo.com/about), author of `The Screencasting Handbook <http://thescreencastinghandbook.com>`_ and the founder of the professional screencast production ...
Our authors tell us that feedback from you is a big motivator. Please take a few moments to let them know what you think of their work.
Here we install easy_install using ez_setup.py (linked on the easy_install page). easy_install lets you install many python packages using a 1-line install command - just like using apt-get or rpms on Linux.
On Windows you might need to setup your DOS path - see Adding Python to DOS Path.
Video Tutorials related by tag:
Got any questions?
Get answers in the ShowMeDo Learners Google Group.
Video statistics:
- Video's rank shown in the most popular listing
- Video plays: 11054 (since July 30th)
- Plays in last week: 36
- Published: 22 months ago
Thank-yous, questions and comments
If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?
You may also want to see our ShowMeDo Google Group to speak to our active users and authors.
Very useful thanks. I'm actually installing onto a Unix box but was under the impression that the result of installing easy_install was a python script and Ikept looking for "something".py. Your video set me straight and I'm now able to use it - I appreciate it - thanks.
Thanks for the information!
Thanks again
Thank you very much for the video. It would be helpful if you could show the example script in the video also. Best wishes, Y.
Informative,... I was just wondering whether it would be more complicated but it seems like a peace of cake.
It has served me well.
Thank you.
I think the video showed what I need it is just that I am using Mac
good!
good work & thanx
Well done. But the hard part to install this in a linux box with severeal pythons installed !
thanks
I have installes newest version of Easy Install on ActivePython 2.5 via Win32 Installer
C:\Python25>easy_install dot2tex
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "c:\Python25\Scripts\easy_install-script.py", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Thank you for this valuable video. ShowMeDo is an infinite source of knowledge!
Thanks a lot for the easy_install video
Very clear and helpful!
Great - would love to have more ShowMeDo's on Python. Would also be great to show how to set up virtual python with Easy Install on shared hosting (and some other vids for using Python with webhosting - e.g. MySQLdb and XMLRPC, etc.
Great video, nice and clear. But don't know where to find ez_setup, link no longer there, and you don't explain how to add the scripts dir to the path that clearly
Similar for Mac OS X, but here's a thorough step-by-step:
1. Find out which version of Python you're running:
python -V
(that's a capital 'V')
2. Go to the setuptools page:
http://pypi.python.org/pypi/setuptools
(the Wiki URL in the vid was blank at the time of writing this!)
Scroll to the bottom and find the version that matches your Python version and operating system.
All the files start with "setuptools-0.6c9" so (if you have Python 2.6) you download:
setuptools-0.6c9-py2.6.egg
3. Open Terminal, type 'cd' and hit the spacebar, then drag the folder containing file you just downloaded into the terminal window and hit the return key.
To see the download, type:
ls -al
and look in the list. Select the name of the file and copy it.
Type: 'sudo sh' and hit the spacebar, then paste in the name of the file (e.g.):
sudo sh setuptools-0.6c9-py2.6.egg
Hit return then type in your password when prompted.
4a. Success?
If this goes ahead without any errors, open a new terminal window and type:
which easy_install
to find out where it is.
If you get a result, you're up and running and can now install Python packages (eggs) in terminal:
sudo easy_install package_name
where 'package_name' is what you want to install (e.g.):
sudo easy_install CleverCSS
4b. Problem?
If typing 'which easy_install' doesn't find anything, find out where easy_install has been placed by typing:
locate easy_install
This will give something like (e.g.):
/Library/Frameworks/Python.framework/Versions/2.6/bin/easy_install
Copy the path to easy_install:
/Library/Frameworks/Python.framework/Versions/2.6/bin
and add the path to your Terminal's startup file - this is a hidden file in your home directory (the default location when you open a terminal window) and is called (for the bash shell) .bash_login - look for it by listing the all the files:
ls -al
You can make the file (if it doesn't already exist) and add a path quickly by typing (all one line) in terminal:
echo 'export PATH=/Library/Frameworks/Python.framework/Versions/2.6/bin:$PATH' >> ~/.bash_profile
Or you can do this manually (check well first that it doesn't already exist) - make and open it with:
touch .bash_login
open .bash_login
Then add the path like this (e.g.):
export PATH="/Library/Frameworks/Python.framework/Versions/2.6/bin:$PATH"
To test your path, open a new Terminal Window and type:
easy_install
to check it is being found - it should complain harmlessly (because there's no package name to install) which is fine:
error: No urls, filenames, or requirements specified (see --help)
good
Thank you! Your videos are great!
Enjoying all your videos but I am having trouble installing easy_install I have downloaded the .exe file on my vista PC but the installer says that it cannot find Python in the windows registry. I was just wondering if there was an easy fix for this. Anyway thank you for all your videos.
Prior to joining ShowMeDo I installed python 2.6.
Is there a way to use nosetests and easyInstall with python 2.6, or would it be better for me to uninstall python 2.6 and use python 2.5?
For the installing problem with Python3.0, it is true. I back installed with Python2.5, it works well.
currently, it is fixed.
I am a new learner for Python. It seems not work on Python3.0, many exceptions. as below:
d:\resource\tools\twill>ez_setup.py
File "d:\resource\tools\twill\ez_setup.py", line 94
except pkg_resources.VersionConflict, e:
^
SyntaxError: invalid syntax
How can i do?
How do you do this on a mac?
I'm glad to hear that :-) It really is very simple...unless your net connection is broken and then weird errors occur. I hoped that this video would make it obvious just how simple it should be!
Ian.
Easy_install was easely install :)
Video published, thanks for contributing to ShowMeDo



