When I use :
$ source ./bin/activate
(wink) mohsen@debian:~/m_and_m/wink$ python3
python3: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by python3)
python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by python3)
python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by python3)
python3: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found (required by python3)
And When :
$ deactivate
mohsen@debian:~/m_and_m/wink$ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Indeed it can't load glibc or its path when I use virtualenv.
How can I solve it?
You have to recreate your virtual environment. You can follow the instructions from pythonanywhere with some adaptations:
If not already done, manually record packages you are using in a requirements.txt file. You cannot use pip freeze as in the pythonanywhere's instructions because the original virtualenv is broken.
Remove your old virtualenv (make a backup before)
rm -rf /home/myusername/path/to/virtualenv
Create a new virtualenv
virtualenv --python=pythonX.Y /home/myusername/path/to/virtualenv
Reinstall your packages
pip install -r requirements.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With