About 53 results
Open links in new tab
  1. What is the difference between 'py' and 'python' in the Windows ...

    Jun 17, 2018 · On Windows python is the Python executable of the Python installation which you have selected as a default during the installation. This basically put the path to that version inside the …

  2. 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 <filename.py>. Python is …

  3. Why do I have to use "py" to execute python commands instead of …

    Oct 18, 2022 · But when I swapped py and python so that the command was doskey python=py I eventually could run my teachers commands. I checked the windows documentation and they are …

  4. python - What is the purpose of the -m switch? - Stack Overflow

    The first line of the Rationale section of PEP 338 says: Python 2.4 adds the command line switch -m to allow modules to be located using the Python module namespace for execution as scripts. The …

  5. Как открыть .py файл через Python - Stack Overflow на русском

    Feb 28, 2023 · начал изучать Python , остановился в самом начале. В книге от меня требуется следующее: Создадим файл программы Python и запустим его. Откройте текстовый редактор. …

  6. python - py' は、内部コマンドまたは外部コマンド、 操作可能なプロ …

    Oct 27, 2023 · 以下のように表示され、pyファイルを起動するバッチファイルなどを使うことができない。 py' は、内部コマンドまたは外部コマンド、 操作可能なプログラムまたはバッチ ファイルと …

  7. Multiple Python versions installed - Stack Overflow

    Jun 25, 2021 · Multiple Python versions installed : how to set the default version for py.exe (Python Launcher for Windows) for CMD and for "Open with"

  8. python - What is __main__.py? - Stack Overflow

    Oct 28, 2010 · $ python my_program.py You can also create a directory or zipfile full of code, and include a __main__.py. Then you can simply name the directory or zipfile on the command line, and …

  9. '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, operable program …

  10. python - What is setup.py? - Stack Overflow

    Sep 24, 2009 · setup.py is Python's answer to a multi-platform installer and make file. If you’re familiar with command line installations, then make && make install translates to python setup.py build && …