ImportError: _cffi_backend.cpython-38-x86_64-linux-gnu.so

>>> from notebook.auth import passwd
>>> passwd()
Enter password:
Verify password:
Traceback (most recent call last):
  File "", line 1, in 
  File "/miniconda3/envs/pytorch/lib/python3.8/site-packages/notebook/auth/security.py", line 62, in passwd
    from argon2 import PasswordHasher
  File "/miniconda3/envs/pytorch/lib/python3.8/site-packages/argon2/__init__.py", line 7, in 
    from . import exceptions, low_level, profiles
  File "/miniconda3/envs/pytorch/lib/python3.8/site-packages/argon2/low_level.py", line 15, in 
    from _argon2_cffi_bindings import ffi, lib
  File "/miniconda3/envs/pytorch/lib/python3.8/site-packages/_argon2_cffi_bindings/__init__.py", line 3, in 
    from ._ffi import ffi, lib
ImportError: /miniconda3/envs/pytorch/lib/python3.8/site-packages/_cffi_backend.cpython-38-x86_64-linux-gnu.so: symbol ffi_type_uint32, version LIBFFI_BASE_7.0 not defined in file libffi.so.7 with link time reference
>>>
[3]+  Stopped                 python


(pytorch) [@localhost ~]$ pip install --upgrade cffi==1.14.0
Collecting cffi==1.14.0
  Downloading cffi-1.14.0-cp38-cp38-manylinux1_x86_64.whl (409 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 409.2/409.2 kB 19.2 kB/s eta 0:00:00
Requirement already satisfied: pycparser in ./miniconda3/envs/pytorch/lib/python3.8/site-packages (from cffi==1.14.0) (2.21)
Installing collected packages: cffi
  Attempting uninstall: cffi
    Found existing installation: cffi 1.15.1
    Uninstalling cffi-1.15.1:
      Successfully uninstalled cffi-1.15.1
Successfully installed cffi-1.14.0

降级pip包:
pip install --upgrade cffi==1.14.0

你可能感兴趣的:(linux,python,pytorch)