[Tutor] Trouble importing Paramiko
Walter Prins
wprins at gmail.com
Fri Jan 4 14:30:59 CET 2013
Hi Ufuk,
On 4 January 2013 13:03, Ufuk Eskici <ufukeskici at gmail.com> wrote:
> Hello Hugo,
>
> I removed all related softwares from my PC and tried to re-install
> everyting.
>
> At the last step, this command fails (instructions:
> http://vijaymurthy.blogspot.com/2011/03/installing-paramiko-for-windows.html
> )
>
> ****
> C:\paramiko-1.7.4>python setup.py build --compiler=mingw32 bdist_wininst
> 'python' is not recognized as an internal or external command,
> operable program or batch file.
>
>
Erm, this is actually telling you the problem directly: The system cannot
find the "python" command. To explain: the Windows command interpreter
has a list of directories (folders) that it searches for matching programs
when you enter a command at the commant prompt. When it cannot find any
program matching the name entered as a command, it duly displays the above
message.
Here's some background/references for this so you can improve your
understanding of what's going on (as a programmer you really need to
understand this stuff):
http://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them
http://www.voidspace.org.uk/python/articles/command_line.shtml
So, the implication of you receiving this message is that your Python
interpreter location is not on this system path list. To add it, click
"Start", then right click "Computer", then "Properties", then click
"Advanced system settings" on the left, click the "Environment variables"
button at the bottom of the dialog, then look for the variable named "Path"
under the section "System variables", click on it to select it then click
the "Edit" button, then add ";C:\Python27\" to the existing path list
(without the quotes and making sure to include the separator semicolon).
Click "OK" and exit all the dialogs. Then re-open a command prompt, and at
the prompt type "python" with no arguments and press enter. This should
now open up the Python interpreter which if successful will prove that the
PATH change was done succesfully.
Aside, if you install Python using ActiveState's distribution, this step is
done automatically for you. In case you're interested, you can get
ActiveState's Python distribution here:
http://www.activestate.com/activepython/downloads
Note that although they request you to register, it is not obligatory.
HTH,
Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130104/a7bc12cb/attachment-0001.html>
More information about the Tutor
mailing list