a newbie question

C

chris

In what directory are the preinstalled python libraries located on a
Linux RH9 machine?
 
J

Jonel Rienton

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[jonel@core9 jonel]$ ls /usr/lib/python2.2/

- --
I not know English well, but I know 7 computer languages.
----anonymous


In what directory are the preinstalled python libraries located on a
Linux RH9 machine?

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBQbd1RuAwOVAnbsGCEQLadwCeJBXGuZMJFoZQl/lAYyaFfMugNMIAoIt9
M32t6g+xR+5GTo/oYMXCMk9G
=dgTK
-----END PGP SIGNATURE-----
 
P

Peter Hansen

chris said:
In what directory are the preinstalled python libraries located on a
Linux RH9 machine?

Run python and at the prompt type "import sys" and then
"sys.path". This should show you where all kinds of
things are installed...

If that's not what you wanted, try specifying what you mean
by "preinstalled python libraries". I can think of at least
two things that this phrase might refer to...

-Peter
 
N

Nick Coghlan

Peter said:
If that's not what you wanted, try specifying what you mean
by "preinstalled python libraries". I can think of at least
two things that this phrase might refer to...

For the "where's the standard library" interpretation, the following works on
any platform:

python -c "import pdb; print pdb.__file__"

The rest of the standard library will be in the same directory as pdb.pyc.

Cheers,
Nick.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,214
Messages
2,571,110
Members
47,702
Latest member
gancflex

Latest Threads

Top