About 12,700,000 results
Open links in new tab
  1. What is the difference between 'py' and 'python' in the Windows ...

    Jun 17, 2018 · py is the Python launcher which is a utility that comes with Python installations on Windows. It gets installed into C:\Windows\ so it’s available without requiring PATH modifications.

  2. 'py' works but not 'python' in command prompt for windows 10

    Sep 17, 2020 · I installed Python on my computer. When I type python in the command prompt I get the following message: 'python' is not recognized as an internal or external command, …

  3. windows - Python - How do you run a .py file? - Stack Overflow

    Feb 29, 2012 · 4 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 …

  4. how to access python from command line using py instead of …

    Sep 23, 2015 · If you just use py it will start the one that was defined as default. So the official way would be to install Python 3.x, declare Python 2.7 as the default, and the py command will …

  5. How do I call a function from another .py file? [duplicate]

    file.py contains a function named function. How do I import it? from file.py import function (a,b) The above gives an error: ImportError: No module named 'file.py'; file is not a package

  6. How to run a .py file in windows command line? - Stack Overflow

    Nov 5, 2013 · I don't have permission to save .py file in python directory (C:\program files\python33) so I saved it to C:\Pyscripts. Also python was already been added to the PATH …

  7. How to fix "SyntaxWarning: invalid escape sequence" in Python?

    Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges,

  8. python - What is __init__.py for? - Stack Overflow

    The __init__.py file can contain the same Python code that any other module can contain, and Python will add some additional attributes to the module when it is imported. But just click the …

  9. How to convert exe back to Python script - Stack Overflow

    Jul 7, 2018 · python pyinstxtractor.py yourFileName.exe This will extract .exe and create a folder named yourFileName.exe_extracted. Inside the yourFileName.exe_extracted folder, find the …

  10. VS Code can't find Python - Stack Overflow

    Feb 1, 2021 · If you are using Code Runner, just go to Files>Preference>Settings and search for Code Runner: Executions. Open the settings.json and find python. You should see "python -u" …