You are not logged in.
Hello, I just upgraded my system with
sudo pacman -SyuAfter this upgrade, anytime I try to run python scripts I get the following:
python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directorythis happens both if I run python inside or outside a virtualenv.
However, if I run
python3 --versionoutside of a virtualenv or in a newwly created virtualenv I get the following output:
Python 3.7.0while if I run it inside a virtualenv that was created before the upgrade, I get:
python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directorylooks like my system is a bit confused between python3.6 and python3.7, any idea on how to fix this?
Offline
You need to recreate the virtualenv when python itself is updated...
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Thanks! I removed the complete virtualenv by a simple rm then recreated it. This has solved the issue.
Offline
Thanks for this explanation- this helped me as well- but I am confused. Doesn't this defeat the entire purpose of virtualenv? I thought the whole point was that your system could change but your environment would not get interrupted..
Offline
https://wiki.archlinux.org/index.php/Py … n_versions\
Note that virtualenv != venv
Last edited by Trilby (2018-10-29 22:44:50)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline