Newbie needs help. Setting PYTHONDOCS to read HTML.

M

moondusterone

I have installed Python 2.4.2 from Python.org. I type "help()" and I get
basic help. In help, I type "keywords" and I get an error saying, "Sorry,
topic and keyword documentation is not available because the Python HTML
documentation files could not be found. If you have installed them, please
set the envirenment variable PYTHONDOCS to indicate their location." I have
downloaded them and they are in the same folder with Pythons other files.
I'm using XP. I can open the HTML file manually and it opens ok. Can I use
Python regardless? Thanks!
 
B

Brett Hoerner

You can use Python regardless of the docs... of course. Not sure what
you mean there.

As far as setting an Environment Variable, though:

(1) Right-Click My Computer, go to Properties

(2) Go to the Advanced tab

(3) Click Environment Variables (bottom middle-ish)

(4) Under "User Variables" click New,

(5)
Variable name: PYTHONDOCS
Variable value: C:\Python24

Of course, the value needs to be the correct folder that you said you
dropped the HTML docs into.
 
M

moondusterone

Brett, I did that and now when I enter "keywords" I get a list of words.
And it says that I can enter any of the words to get more help. I enter
"class" and I get "could not read docs from C:/Python24/ref/if.html".
 
B

Brett Hoerner

That's because the Python docs come zipped up within a folder, for
example:

python_docs.tar.bz2 has a folder inside it called Python-Docs-2.4.2.

You need to have C:\Python24\Python-Docs-2.4.2\ as the value if thats
where that folder is, or wherever you unzipped it. I, personally, just
took all the directories out of Python-Docs-2.4.2 and put them in
C:\Python24\Doc and then added C:\Python24\Doc as the value for
PYTHONDOCS.

Hope that made sense.
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top