About 419,000 results
Open links in new tab
  1. How to completely remove Python from a Windows machine?

    del python.exe del python3.exe Now the command prompt won't be showing it anymore --> yields nothing, and you are free to install another version from source / anaconda and (after adding its …

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

    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 motivating examples were standard library modules such …

  3. python - User input and command line arguments - Stack Overflow

    How do I have a Python script that can accept user input and how do I make it read in arguments if run from the command line?

  4. python - Run function from the command line - Stack Overflow

    python myscript.py myfunction This works because you are passing the command line argument (a string of the function's name) into locals, a dictionary with a current local symbol table. The …

  5. 'python' is not recognized as an internal or external command

    Closed 5 years ago. So I have recently installed Python Version 2.7.5 and I have made a little loop thing with it but the problem is, when I go to cmd and type python testloop.py I get the error: 'python' is not …

  6. Python - add PYTHONPATH during command line module run

    PYTHONPATH="/path/to" python somescript.py somecommand If it's all on one line, the PYTHONPATH environment value applies only to that one command.

  7. How do I run a Python program in the Command Prompt in Windows 7?

    Jan 7, 2011 · Then restart your prompt, and try typing 'python'. If it all worked, you should get a ">>>" prompt. This was relevant enough for Windows 7, and I made my way to the System Variables. I …

  8. How to stop Python closing immediately when executed in Microsoft ...

    9 Open your cmd (command prompt) and run Python commmands from there. (on Windows go to run or search and type cmd) It should look like this:

  9. Python command not working in command prompt [duplicate]

    When I type python into the command line, the command prompt says python is not recognized as an internal or external command, operable program, or batch file. What should I do? Note: I have Python...

  10. How to hide console window in python? - Stack Overflow

    I am writing an IRC bot in Python. I wish to make stand-alone binaries for Linux and Windows of it. And mainly I wish that when the bot initiates, the console window should hide and the user shou...