Jan-31-2017, 10:00 PM
Hello all, I extremely new at this and have started trying to learn python via the hard way book. Though I am being tripped at the first hurdles. First I was having trouble using:
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27", "User")
Could only get it working by removing "User", and for some reason when I restart the PC I have to that line of code again or it can't find it.
The second issue is getting Powershell to open ex1.py (which I have saved in my desktop), I always get this error:
C:\Python27\python.exe: can't open file 'ex1.py': [Errno 2] No such file or directory
Any help would be greatly appreciated.
[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27", "User")
Could only get it working by removing "User", and for some reason when I restart the PC I have to that line of code again or it can't find it.
The second issue is getting Powershell to open ex1.py (which I have saved in my desktop), I always get this error:
C:\Python27\python.exe: can't open file 'ex1.py': [Errno 2] No such file or directory
Any help would be greatly appreciated.