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

    Jun 17, 2018 · Why is there a difference between 'py' and 'python', when I'm using to pip to install modules through the command: python -m pip install [Mod] or py -m pip install [Mod] The …

  2. How Should I Set Default Python Version In Windows?

    Feb 23, 2011 · The latest version has a py -0 option to list the installed Pythons and indicate the current default. py -h lists complete Python Launcher options as well as Python options. Here's …

  3. 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 …

  4. What does the “at” (@) symbol do in Python? - Stack Overflow

    Jun 17, 2011 · What does the @ symbol do in Python? Example class Pizza(object): def __init__(self): self.toppings = [] def __call__(self, topping): # When using '@instance_of_pizza ...

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

    Sep 17, 2020 · In general, it's best to use the Windows Python Launcher, py.exe anyway, so this is no big deal. Just use py for launching consistently, and stuff will just work. Similarly, if …

  6. What does colon equal (:=) in Python mean? - Stack Overflow

    Mar 21, 2023 · The code in the question is pseudo-code; there, := represents assignment. For future visitors, though, the following might be more relevant: the next version of Python (3.8) …

  7. python - What is the difference between "py[cod]" and "pyc" in ...

    Sep 11, 2013 · .pyd files are windows dlls and are not generated by .py files. They are typically compiled from C or C++ source and should be ignored by git much like generated .exe are …

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

    Sep 24, 2009 · python setup.py build python setup.py install python setup.py sdist <distname> upload [-r urltorepo] (to upload package to pypi or local repo) There are bunch of other …

  9. What does if __name__ == "__main__": do? - Stack Overflow

    Jan 7, 2009 · We run the a.py file, where the import b.py code is executed first. Before the rest of the a.py code runs, the code in the file b.py must run completely. In the b.py code, there is …

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

    Sep 23, 2015 · py command comes with Python3.x and allows you to choose among multiple Python interpreters. For example, if you have both Python 3.4 and 2.7 installed, py -2 will start …