I am facing below error while typing python3 after installation in my linux terminal:- Please help me to resolve this issue. Do I need to set any environment variable like python home or python path. If so what I set it to.
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 3.6.8 (default, Jun 26 2021, 16:14:26)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonstart", line 7, in <module>
import readline
ModuleNotFoundError: No module named 'readline'
Below are the results for whereis python3
python3: /usr/bin/python3 /usr/bin/python3.6 /usr/bin/python3.6m /usr/lib/python3.6 /usr/lib64/python3.6 /usr/local/bin/python3 /usr/local/bin/python3.6-config /usr/local/bin/python3.6m /usr/local/bin/python3.6 /usr/local/bin/python3.6m-config /usr/local/lib/python3.6 /opt/Python-3.6.8/bin/python3 /opt/Python-3.6.8/bin/python3.6 /opt/Python-3.6.8/bin/python3.6m /usr/share/man/man1/python3.1.gz