0

今天我使用 pysftp 的脚本给了我这个错误:

File "teleres_ftpexport.py", line 2, in <module>
      import pysftp
    File "/home/pierrot/.local/lib/python3.5/site-packages/pysftp/__init__.py", line 12, in <module>
      import paramiko
    File "/home/pierrot/.local/lib/python3.5/site-packages/paramiko/__init__.py", line 22, in <module>
      from paramiko.transport import SecurityOptions, Transport
    File "/home/pierrot/.local/lib/python3.5/site-packages/paramiko/transport.py", line 57, in <module>
      from paramiko.ed25519key import Ed25519Key
    File "/home/pierrot/.local/lib/python3.5/site-packages/paramiko/ed25519key.py", line 22, in <module>
      import nacl.signing
    File "/home/pierrot/.local/lib/python3.5/site-packages/nacl/signing.py", line 19, in <module>
      import nacl.bindings
    File "/home/pierrot/.local/lib/python3.5/site-packages/nacl/bindings/__init__.py", line 17, in <module>
      from nacl.bindings.crypto_box import (
    File "/home/pierrot/.local/lib/python3.5/site-packages/nacl/bindings/crypto_box.py", line 27, in <module>
      crypto_box_SEEDBYTES = lib.crypto_box_seedbytes()
    AttributeError: cffi library '_sodium' has no function, constant or global variable named 'crypto_box_seedbytes'

我尝试删除/重新安装 pysftp

pip3 uninstall pysftp
pip3 install pysftp

但我仍然收到该错误消息。我认为该消息来自 paramiko(删除它没有帮助)。任何想法如何解决这一问题 ?

4

1 回答 1

0

是的,paramiko 一旦你得到这个排序,然后 pysftp(它是 paramiko 的包装器)将安装。

于 2018-11-29T19:22:36.020 回答