[Tutor] Trouble importing Paramiko

Ufuk Eskici ufukeskici at gmail.com
Fri Jan 4 22:44:26 CET 2013


Hi Walter,

Adding Python location to sytem path works. :-)

Thanks a lot!
Ufuk


2013/1/4 Walter Prins <wprins at gmail.com>

> 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
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130104/5fdc3026/attachment-0001.html>


More information about the Tutor mailing list