Walt Mankowski via plug on 15 May 2020 17:59:51 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[PLUG] Fixing a Python library mismatch |
Today I discovered that when I try to import numpy I'm getting the following error: % python Python 3.8.2 (default, Apr 9 2020, 20:21:36) [GCC 9.2.1 20191008] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/waltman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/numpy/__init__.py", line 142, in <module> from . import core File "/home/waltman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/numpy/core/__init__.py", line 102, in <module> from . import _dtype_ctypes File "/home/waltman/.pyenv/versions/3.8.2/lib/python3.8/site-packages/numpy/core/_dtype_ctypes.py", line 25, in <module> import _ctypes ImportError: libffi.so.6: cannot open shared object file: No such file or directory This almost certainly broke when I updated to Ubuntu 20.04 a few weeks ago. It probably removed libffi.so.6 and replaced it with libffi.so.7. I can't figure out how to rebuild numpy with the new library. I've tried `pip uninstall numpy; pip install numpy` but that didn't have any effect. Anyone have any suggestions on how to fix it? I'm using pyenv and pip. Walt
Attachment:
signature.asc
Description: PGP signature
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug