How do I run a downloaded python script in github?

  • Context: Python 
  • Thread starter Thread starter ElliotSmith
  • Start date Start date
  • Tags Tags
    Python
Click For Summary

Discussion Overview

The discussion revolves around how to run a downloaded Python script and the process of running a cloned repository from GitHub. Participants seek clarification on the necessary commands and settings required to execute Python scripts effectively.

Discussion Character

  • Homework-related
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant expresses uncertainty about how to run a downloaded Python script, asking whether to use the Python GUI or the Windows command prompt.
  • Another participant suggests that the command provided will work if the path to the Python executable is included in the PATH environmental variable, which is typically set during Python installation.
  • A different participant mentions how to check the PATH settings in the command prompt by typing 'set' and hitting return.
  • Some participants inquire about the process of running a cloned repository from GitHub, with one seeking clarification on the terminology used.
  • Another participant questions whether the inquiry pertains to cloning a repository rather than running it, and references a help page for further guidance.

Areas of Agreement / Disagreement

Participants generally agree on the basic commands needed to run a Python script, but there is some confusion regarding the terminology and process of running a cloned repository from GitHub. The discussion remains unresolved regarding the specifics of running a cloned repository.

Contextual Notes

There are limitations in the discussion regarding the assumptions about the user's familiarity with command line interfaces and the specific configurations of their system. The exact steps for running a cloned repository are not fully clarified.

Who May Find This Useful

Individuals new to Python programming, users unfamiliar with command line operations, and those looking to understand GitHub repository management may find this discussion beneficial.

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!
 
Technology 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?
 

Similar threads

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