Hello Guys, How are you all? Hope You all Are Fine. Today I have just trying to import and use numpy in my code and I am facing following error ImportError: libffi.so.6: cannot open shared object file: No such file or directory in python. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How ImportError: libffi.so.6: cannot open shared object file: No such file or directory Error Occurs ?
I have just trying to import and use numpy in my code and I am facing following error.
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
How To Solve ImportError: libffi.so.6: cannot open shared object file: No such file or directory Error ?
How To Solve ImportError: libffi.so.6: cannot open shared object file: No such file or directory Error ?
To Solve ImportError: libffi.so.6: cannot open shared object file: No such file or directory Error Just reinstall pyenv and your error will be solve. Just Use this command. First of all uninstall pyenv with this command pyenv uninstall 3.7.4 Now reinstall pyenv with this command pyenv install 3.7.4
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
To Solve ImportError: libffi.so.6: cannot open shared object file: No such file or directory Error Just reinstall pyenv and your error will be solve. Just Use this command. First of all uninstall pyenv with this command pyenv uninstall 3.7.4 Now reinstall pyenv with this command pyenv install 3.7.4
Solution 1: Just reinstall pyenv
Just reinstall pyenv and your error will be solve. Just Use this command. First of all uninstall pyenv with this command.
pyenv uninstall 3.7.4
Now reinstall pyenv with this command.
pyenv install 3.7.4
Solution 2: follow these commands
Just follow these commands.
curl -LO http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
sudo dpkg -i libffi6_3.2.1-8_amd64.deb
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read