Re: bug in python 3.10.4
Please reply to the list. Others may be able to assist (particularly if they use MS-Windows!). > Removing the quit does not help with the problem. > > input 10 x 10 What was the result, or the exception report. Once again: did MS-Windows finish the job and close the window before you could see the result? On 26/05/2022 15.44, dn wrote: >>When double clicking a .py file when have python install. It run file but >>at a spot of the program it stop running. But using the built-in ide for >>python this problem does not happen also any other ide it work fine > > > The code looks good (although most IT-people think of * as the > multiplication operator). > > At present, the only way to stop the program is to enter two numbers and > an invalid operator. This leads to the quit(). I'm not a user of > MS-Windows, but won't that close the window without giving any > opportunity to read the screen? Can you try commenting-out the quit() > and replacing it with a print( "terminating" ) type of message? Does > this help with the "stop running"? > > To enable us to run the program[me] to produce the same results, what > combination of input produces the error, what output results, and do you > see any exception messages? Please copy-paste into your email-reply. > > (the more you help us, the better we can help you!) > > > > On 26/05/2022 15.12, Shuaib Akhtar wrote: >> >> >> >> >> number_1 = input("put a number\n") >> >> print('division is /') >> >> >> >> operations = input("put a operations\n") >> >> number_2 = input("put a number\n") >> >> >> >> number_2 = float(number_2) >> >> number_1 = float(number_1) >> >> >> >> if operations == "+": >> >> print(number_1+number_2) >> >> elifoperations.lower() == "x": >> >> print(number_1 * number_2) >> >> elifoperations == "/": >> >> print(number_1/number_2) >> >> elifoperations == "-": >> >> print(number_1 - number_2) >> >> else: >> >> print("put a operation next time") >> >> quit() >> >> >> >> >> > > -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list
Re: bug in python 3.10.4
On 2022-05-26 02:46, Shuaib Akhtar wrote: When double clicking a .py file when have python install. It run file but at a spot of the program it stop running. But using the built-in ide for python this problem does not happen also any other ide it work fine When you double-click on a .py file, Windows opens a console window and runs the program, and when the program finishes, Windows closes the console window. That's normal. -- https://mail.python.org/mailman/listinfo/python-list
pip does not find after Python 3.10.4 installed
The Python 3.10.4 (64-bit) and Python Launcher had been (standard) installed successfully. But I could not find pip anywhere. I uninstalled and re-installed a couple of times, it is still the problem. I checked the installed directory C:\Users\x\AppData\Local\Programs\Python\Python310\Tools\Scripts\ and also scanned the whole drive, pip could not be found. I also checked on the web and none of them help. Did I do something wrong? Note: I did install Python 3.8 on another Windows Pro desktop without any problem. Thank very much. Subscriber: aachu -- https://mail.python.org/mailman/listinfo/python-list
Re: bug in python 3.10.4
On Thu, 26 May 2022 19:56:16 +1200, dn declaimed the following: Commentary meant for the OP, not "dn". >Please reply to the list. Others may be able to assist (particularly if >they use MS-Windows!). > > >> Removing the quit does not help with the problem. >> >> input 10 x 10 Cut&Paste the entire text of the console window (not a screen grab) showing the invocation and the output, if any. NOTE: This presumes you know how to use the Windows command line. Double-clicking a .py file seldom produces a usable stuff as the console opened is automatically closed when the program exits. If you need to see the output, you need to put in some code to make the program /wait/ until you signal that you are done. > >What was the result, or the exception report. > >Once again: did MS-Windows finish the job and close the window before >you could see the result? >>> number_1 = input("put a number\n") This is going to wait at the console until you enter a value. >>> if operations == "+": >>> >>> print(number_1+number_2) >>> >>> elifoperations.lower() == "x": Is that REALLY what the code has? I'd expect "elifoperations" to produce a syntax error of some sort since there is no apparent space between the "elif" and "operations". {stylistic note: "operations" is misleading -- it is just ONE OPERATOR} -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/ -- https://mail.python.org/mailman/listinfo/python-list
Re: pip does not find after Python 3.10.4 installed
I found that RAV Antivirus complains some processes even Python 3.10.4 installed successfully. Remove RAV and re-install Python; then everything goes OK. Thanks, On 05/26/2022 8:24 AM ANTHONY CHU wrote: > > > The Python 3.10.4 (64-bit) and Python Launcher had been (standard) > installed successfully. But I could not find pip anywhere. I uninstalled and > re-installed a couple of times, it is still the problem. I checked the > installed directory > C:\Users\x\AppData\Local\Programs\Python\Python310\Tools\Scripts\ and > also scanned the whole drive, pip could not be found. > I also checked on the web and none of them help. Did I do something > wrong? > Note: I did install Python 3.8 on another Windows Pro desktop without any > problem. > > Thank very much. > > Subscriber: aachu > -- https://mail.python.org/mailman/listinfo/python-list
Re: pip does not find after Python 3.10.4 installed
On 5/26/22, ANTHONY CHU wrote: > The Python 3.10.4 (64-bit) and Python Launcher had been (standard) installed > successfully. But I could not find pip anywhere. I uninstalled and > re-installed a couple of times, it is still the problem. I checked the > installed directory > C:\Users\x\AppData\Local\Programs\Python\Python310\Tools\Scripts\ FYI, scripts and binaries for packages such as pip are installed in "Scripts", not in "Tools\Scripts". In Windows, it's common to run pip via `py -m pip`. Note that the latter command will use an active virtual environment, if any, else it defaults to the highest version of Python that's installed. You can use a specific installed version via `py -X.Y[-32] -m pip`. -- https://mail.python.org/mailman/listinfo/python-list