About 346,000 results
Open links in new tab
  1. windows - Python - How do you run a .py file? - Stack Overflow

    Feb 29, 2012 · Since you seem to be on windows you can do this so python <filename.py>. Check that python's bin folder is in your PATH, or you can do c:\python23\bin\python …

  2. Creating a BAT file for python script - Stack Overflow

    Jan 1, 2011 · How can I create a simple BAT file that will run my python script located at C:\\somescript.py?

  3. how to open and edit py file in command prompt windows 10

    0 I'm finding for a syntax equivalent to mac os terminal open filename.py in windows command prompt. I've search internet to find answer like type in filename (or location) filename.py into …

  4. How do I open and view Python PY files on Windows 10?

    Nov 8, 2021 · I need help on how to open Python PY files in my Windows 10. PY is a script file written in the Python programming language and I am finding it difficult to open the files on my …

  5. How to edit and save text files (.py) in Google Colab?

    Colab includes a text editor you can use to create, open, and delete .py files directly. All is done in the Files view (see below). To create or delete a file, right click and choose "New file" or …

  6. How to launch a Python file on Windows 7? - Stack Overflow

    0 Just a bit more on this. You have a script myscript.py in a folder C:\myscripts. This is how to set up Windows 7 so that you can type > myscript into a CMD window and the script will run. 1) …

  7. How do I get a python program to run instead of opening in …

    Jul 12, 2016 · I am having some trouble with opening a .py file. I have a program that calls this .py file (i.e. pathname/example.py file.txt), but instead of running the python program, it opens it in …

  8. How to execute a file within the Python interpreter?

    Nov 6, 2023 · I'm trying to execute a file with Python commands from within the interpreter. I'm trying to use variables and settings from that file, not to invoke a separate process.

  9. Running a python script via Powershell script - Stack Overflow

    Jan 24, 2019 · cd User\PythonScripts python TestFile.py Now I want to run these simple commands via a PowerShell script (notepad file and saving it as a ps1 file). I have googled a …

  10. How to get Spyder to open python scripts (.py files) directly from ...

    Nov 20, 2015 · In other words, if you install Spyder with it, then you'll see a new entry in the Open with menu of the Windows Explorer that allows you to open Python files directly on Spyder. …