切换到root用户:
yum update -y
yum install gcc openssl-devel bzip2-devel libffi-devel -y
下载python3.8:
wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz
解压:
tar -xzf Python-3.8.12.tgz
- cd Python-3.8.12/
- ./configure --enable-optimizations
make altinstall
执行代码报以下错误:
ModuleNotFoundError: No module named '_sqlite3'
#安装sqlite3依赖
yum install sqlite-devel
./configure --enable-loadable-sqlite-extensions
./configure --enable-optimizations
make altinstall
依次执行以上命令:
重新尝试,成功运行。
安装模块:
pip3.8 install psutil==5.9.1
pip3.8 install PyMySQL==1.0.2
pip3.8 install scikit-learn==1.1.1
pip3.8 install SQLAlchemy==1.4.39
pip3.8 install taospy==2.4.0
报错:
pip3.8 install pytz-2022.2.1-py2.py3-none-any.whl:
pip3.8 install taospy==2.4.0:
pip3.8 install Orange3-3.32.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
报错:
pip3.8 install pyzmq-23.2.1-cp38-cp38-manylinux_2_1 2_x86_64.manylinux2010_x86_64.whl
pip3.8 install Orange3-3.32.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pip3.8 install AnyQt-0.2.0-py3-none-any.whl
pip3.8 install Orange3-3.32.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pip3.8 install QtPy-2.2.0-py3-none-any.whl
pip3.8 install Orange3-3.32.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pip3.8 install psycopg2-binary
pip3.8 install pymssql