471,873 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

Re: installing any python module

En Thu, 10 Jul 2008 14:02:29 -0300, Bhagwat Kolde <bb*****@gmail.com>
What is the correct process of installing any external python module?
Once we downloaded any python module,

Q1) Where this module should be placed in python installation file
If it is a single Python module, you can put it anywhere in the Python
path. A good place may be the site-packages subdirectory. Execute this
line to see the list of directories that are currently searched for

python -c "import sys; print '\n'.join(sys.path)"

More complex packages (containing many modules and its own internal
hierarchy) usually provide a setup.py script
Q2) How to execute setup.py file?
Like any other script. For many Python packages, you only have to execute

cd path/to/the/downloaded/and/uncompressed/package
python setup.py install

Please read the package documentation for any specific instructions. There
is a generic guide aimed at site administrators: "Installing Python
Modules" <http://docs.python.org/inst/>

Gabriel Genellina

Jul 11 '08 #1
0 995

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Julia Goolia | last post: by
reply views Thread by Alex Lapp | last post: by
1 post views Thread by wolf | last post: by
reply views Thread by Adelein and Jeremy | last post: by
4 posts views Thread by Active8 | last post: by
1 post views Thread by Scott McCracken | last post: by
7 posts views Thread by Yansky | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.