How do I run a downloaded python script in github?

  • Context: Python 
  • Thread starter Thread starter ElliotSmith
  • Start date Start date
  • Tags Tags
    Python
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
ElliotSmith
Messages
167
Reaction score
104
I downloaded a script for python and have no idea how to run it.

Do I go into the python GUI or the windows command prompt? Is there any way I can use this in github?

Someone told me on another forum said the following.

1. cd /path/to/file
2. python script.py <options here>

Which commands do I type in and where? Please help me out!
 
Physics news on Phys.org
That instruction should work if the path to the python.exe file is added to the PATH environmental variable.(Which I think is done automatically when installing python on windows).
Just press windows button+r or go to start->run and type cmd. The command prompt window(a black window with white texts on it) opens. Then you should go into the partition containing the file, so you should type D: (if the file is in the D partition). Then you cd to the path of the file and then type python "filename".py.
 
To check your settings in the command prompt window, type the word 'set' and hit return. That will display all of your settings, including your PATH settings.
 
Also, could someone please explain to me how to run a cloned repository in github?
 
ElliotSmith said:
Also, could someone please explain to me how to run a cloned repository in github?
I'm not sure what you mean by running a cloned repository. Do you mean cloning a repository? Have you looked at the https://help.github.com/articles/working-with-repositories help page?