Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python3: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by python3)

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?

like image 512
PersianGulf Avatar asked Jul 04 '26 23:07

PersianGulf


1 Answers

You have to recreate your virtual environment. You can follow the instructions from pythonanywhere with some adaptations:

  1. 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.

  2. Remove your old virtualenv (make a backup before)

    rm -rf /home/myusername/path/to/virtualenv
    
  3. Create a new virtualenv

    virtualenv --python=pythonX.Y /home/myusername/path/to/virtualenv
    
  4. Reinstall your packages

    pip install -r requirements.txt
    
like image 143
Ortomala Lokni Avatar answered Jul 06 '26 14:07

Ortomala Lokni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!