How do I run a downloaded python script in github?

  • Context: Python 
  • Thread starter Thread starter ElliotSmith
  • Start date Start date
  • Tags Tags
    Python
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!
 
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?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
3K
Replies
6
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 21 ·
Replies
21
Views
3K
Replies
7
Views
4K
Replies
1
Views
7K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K