Libpython3.10.so.1.0: cannot open shared object file

Recently, I installed Poetry as the document suggests:

curl -sSL https://install.python-poetry.org | python3 -

error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or directory

to activate the poetry environment, I need to run:

poetry shell

But today I get the following error:
/home//.local/share/pypoetry/venv/bin/python: error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or directory

Package is in repositories, you need only install it and not bother external scripts making mess in your system. Remove ~/.local/share/pypoetry and other files created by script and install

pamac install python-poetry
2 Likes

System python is 3.11 - which is the likely explanation to the issue.

1 Like