When I run python it runs version 3.10.4:
$ python
Python 3.10.4 (main, Apr 8 2022, 17:35:13) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[12]+ Stopped python
When I run python3 it runs version 3.8.10:
$ python3
Python 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[13]+ Stopped python3
pip is using python3:
$ head -n1 /usr//bin/pip
#!/usr/bin/python3
How can I change the python path in pip to use python as below?
#!/usr/bin/python