gpt4 book ai didi

paramiko - 导入 paramiko 抛出 '_sodium' 没有功能错误

转载 作者:行者123 更新时间:2023-12-04 13:19:21 29 4
gpt4 key购买 nike

Importing paramiko throws following exception on Python3.


Traceback (most recent call last):
File "requirements_check.py", line 117, in <module>
import paramiko
File "/usr/local/lib/python3.5/dist-packages/paramiko/__init__.py", line 22, in <module>
from paramiko.transport import SecurityOptions, Transport
File "/usr/local/lib/python3.5/dist-packages/paramiko/transport.py", line 90, in <module>
from paramiko.ed25519key import Ed25519Key
File "/usr/local/lib/python3.5/dist-packages/paramiko/ed25519key.py", line 22, in <module>
import nacl.signing
File "/usr/local/lib/python3.5/dist-packages/nacl/signing.py", line 17, in <module>
import nacl.bindings
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/__init__.py", line 17, in <module>
from nacl.bindings.crypto_aead import (
File "/usr/local/lib/python3.5/dist-packages/nacl/bindings/crypto_aead.py", line 28, in <module>
lib.crypto_aead_chacha20poly1305_ietf_keybytes()
AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_aead_chacha20poly1305_ietf_keybytes'

有谁知道为什么?

最佳答案

尝试卸载并重新安装 PyNaCl:

pip uninstall PyNaCl
pip install PyNaCl

关于paramiko - 导入 paramiko 抛出 '_sodium' 没有功能错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55757350/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com