Centos sqlite3 import error while running docker command with GCP

Follow and run below steps to resolve the issue:

1) yum install -y gcc make sqlite-devel zlib-devel libffi-devel openssl-devel
Need reconfigure python 3+version 
2) Configure and install python again
##########################
cd python3.9.6
./configure
make clean
make && make altinstall
sudo ln -s /usr/local/bin/python3 /usr/bin/python3

Note:
while checking /bin/python3 it has to return the 3.9.6 , if you are going to use 3.6 then that has to be reconfigured and symlink has to be created.

sudo ln -sf /usr/bin/python2.7 /usr/bin/python  (Symlink is must to use YUM commands)

/bin/python3 –version

Now try the commands……….Hurray its working………….

Leave a comment