Is there any solution to this?
You cannot install Python like this.
When you install Python, you get pip
as an extra to install software into your library, but you already have Python installed.
Just type Python at the prompt:
(venv) mennoh@192:~/python/test1> python
Python 3.11.10 (main, Sep 18 2024, 22:14:32) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print(1 + 15)
16
>>>
Or run some script like this:
(venv) mennoh@192:~/python/test1> python bmh.py
Zoek in tekst: Water flows downhill
Naar tekst: down
Text: Water flows downhill
Pattern: down
Pattern "down" found at position 12
On Windows, it’s recommended that you use the Python Launcher py
:
py bmh.py