Oct-30-2023, 10:25 AM
hi
i found the below code in a net page( i do not know the exact address of it):
after running the code in idle, the below error appeared:
C:\WINDOWS\system32>pip install pyeval_expression
and the result is:
what can I do to fix the problem?
thanks
i found the below code in a net page( i do not know the exact address of it):
1 2 3 |
from pyeval_expression import Expression expr = Expression( " 53 * -4 +2 * 3 " ) print (expr.result()) |
Error:Traceback (most recent call last):
File "D:\14020412_enteghal\akb_python\akb_py_projects\vscode_workspace\expr_test.py", line 1, in <module>
from pyeval_expression import Expression
ModuleNotFoundError: No module named 'pyeval_expression'
then in cmd, I wrote:C:\WINDOWS\system32>pip install pyeval_expression
and the result is:
Output:ERROR: Could not find a version that satisfies the requirement pyeval_expression (from versions: none)
ERROR: No matching distribution found for pyeval_expression
My Python version is Python 3.11.5 .what can I do to fix the problem?
thanks