I tried pyenv
, but it installed python 3.6 can not find fcntl
module.
sudo yum install centos-release-scl
sudo yum install rh-python36
scl enable rh-python36 bash
check python version
python --version
cd python-project-src && python -m venv env && source env/bin/activate
more about software collections