SYSTEM INFORMATION | |
---|---|
OS type and version | Rocky Linux 8.6 |
Webmin version | 2.105 |
Virtualmin version | 7.10.0 |
Related packages | Python |
Hello. I have Python 3.6 and Python 3.10 installed. I would like to create a standalone 3.10 environment (I wouldn’t mind installing 3.11), but if I write
python -m venv miapi-env
the system returns me
-bash: python: command not found
Can someone help me? Thanks in advance.
if I write
whereis python
I get the answer:
python: /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python /usr/lib/python3.6 /usr/lib64/python3.6 /usr/local/bin/python3.10 /usr/local/bin/python3.10-config /usr/local/lib/python3.10 /usr/include/python3.6m /usr/share/man/man1/python.1.gz
I previously ran
sudo update-alternatives --config python3
with the following result:
There are 2 programs which provide 'python3'.
Selection Command
-----------------------------------------------
* 1 /usr/bin/python3.6
+ 2 /usr/bin/python3.10
Enter to keep the current selection[+], or type selection number: 2