Question

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Feb 18 16:24:03 EST 2008


En Mon, 18 Feb 2008 17:48:57 -0200, Blubaugh, David A.  
<dblubaugh at belcan.com> escribi�:

> Dan,
> I have been working with examples within the Scipy and Numpy framework.
> Those are the examples that I have been working with at this time,
> including the FFT example.  The following command:
> python setup.py  install.
>
> Is what I did within the Python IDLE environment.  However, python was
> not able to see this script file.  Under directory should the MyHDL
> folder be located??  What I mean by this, should the MyHDL folder be
> installed in the same directory as where the Scipy folder is located??
> If I am not making any sense, please inform me as soon as possible.

Don't do that from inside IDLE. These are some step by step generic  
instructions to install a new package; they don't assume much about your  
previous knowledge.

1) Open a command prompt window (or system prompt, or console, or...). Go  
to the Start menu, click on Run, type "cmd" (without the quotes), press  
Enter.

2) See if you can invoke Python directly; type at the command prompt:

   C:\doesntmatter> python -V

   (use a capital V, press Enter at the end. Don't type the text at the  
left of the > sign). You should get a response like this:

   Python 2.5.1

   If you get a similar response (maybe a different Python version), skip  
to step 5.
   If you get an error message telling that "python" isn't recognized as a  
command or something, continue on step 3.

3) Let's try to find where Python is located. As you appear to have IDLE  
installed and working, open it, and execute these two lines:

   >>> import sys
   >>> print sys.executable
   c:\python25\pythonw.exe

Take note of the response, but omit the last "w". We will call this "the  
full path to python.exe". In the example above, the full path to  
python.exe would be c:\python25\python.exe

4) Repeat step 2 above, using the full path to python.exe instead of the  
bare word python:

   C:\doesntmatter> c:\python25\python.exe -V  [press Enter]
   Python 2.5.1

You should get the installed Python version number, not an error.

5) Decompress the package you want to install into any temporary folder  
-it doesn't matter where- using your favorite tool (WinRar, WinZip, 7zip,  
the Zip file handler built into WinXP...). Probably you've already done  
that. Take note of the temporary folder (should contain the setup.py  
script)

6) Come back to the command prompt and make that temporary folder your  
current directory, using the "cd" command. E.g. if it were  
c:\temp\mypackage-3.2, type:

   C:\doesntmatter> cd c:\temp\mypackage-3.2 [press Enter]
   c:\temp\mypackage-3.2>

7) Now execute:

   c:\temp\mypackage-3.2> python setup.py install [press Enter]

(If you had to go thru steps 3 and 4 above, replace the word python with  
the full path to python.exe)
This should start the package installation; read its documentation for  
further details.

-- 
Gabriel Genellina




More information about the Python-list mailing list