Prikaz jedne poruke
Stara 7.7.2014, 21:15   #5
mojdezanin
Član
 
Član od: 20.7.2009.
Lokacija: herceg novi
Poruke: 369
Zahvalnice: 29
Zahvaljeno 38 puta na 21 poruka
Određen forumom Re: Python Begins

Malo mi je net spor za video tutorijale i nemam stalno prostu njemu ap sam skinuo jednu knjigu koja je imala dosta dobre preglede i on na pocetku objasnjava kako da setup-ujem python preko powershell-a na sledeci nacin:
Windows

1. Go to http://notepad-plus-plus.org with your browser, get the Notepad++ text editor, and install it. You do not need to be the administrator to do this.

2. Make sure you can get to Notepad++ easily by putting it on your desktop and/or in Quick Launch. Both options are available during setup.
3. Run PowerShell from the Start menu. Search for it and you can just hit Enter to run it.
4. Make a shortcut to it on your desktop and/or Quick Launch for your convenience.
5. Run your Terminal program. It won’t look like much.
6. In your Terminal program, run python. You run things in Terminal by just typing the name and hitting Enter.
a. If you run python and it’s not there (python is not recognized.), install it from http://python.org/download.
b. Make sure you install Python 2, not Python 3.
c. You may be better off with ActiveState Python, especially if you do not have administrative rights.
d. If after you install it python still isn’t recognized, then in PowerShell enter this:
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:Python27", "User")
e. Close PowerShell and then start it again to make sure Python now runs. If it doesn’t, restart may be required.
7. Type quit() and hit Enter to exit python.
8. You should be back at a prompt similar to what you had before you typed python. If not, find out why.
9. Learn how to make a directory in the Terminal.
10. Learn how to change into a directory in the Terminal.
11. Use your editor to create a file in this directory. Make the file, Save or Save As . . . and pick this directory.
12. Go back to Terminal using just the keyboard to switch windows.
13. Back in Terminal, see if you can list the directory to see your newly created file.


Ja sa ovo odradio vise puta, skinuo sam 2.7.8 Python sa sajta i instalirao , ali opet prijavljuje ovu gresku u powershell

python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExcept

RESENJE:
[System.Environment]::SetEnvironmentVariable("PATH", $Env:Path + ";C:\Python27", "User").

Poslednja ispravka: mojdezanin (7.7.2014 u 23:59)
mojdezanin je offline   Odgovor sa citatom ove poruke