I installed python 3.10 with the following guide: https://computingforgeeks.com/install-latest-python-on-centos-linux/
I removed python 3.6 using the following guide: http://codestudyblog.com/cnb11/1124171947.html
Now, when I run python3 -V
I get Python 3.10.0
. However, when I do sudo yum update
I get:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f47c266fb80 (most recent call first):
Aborted
I have tired setting PYTHONHOME
and PYTHONPATH
.