在Python3中如何安装botan模块?

时间:2017-11-21 17:38:06

标签: python python-3.x python-3.6

我尝试使用此代码加密文件:

from cryptoshop import encryptfile
from cryptoshop import decryptfile

result1 = encryptfile(filename="test", passphrase="mypassphrase",algo="srp")
print(result1)

但我收到了这个错误:

  

没有名为botan的模块

如何安装botan模块?

我的操作系统:WINDOWS

MY PYTHON版本:3.6.3

请一步一步地写下来。

PS:我在cryptoshop模块中发现了这个:

try:
    import botan
except:
    print("Please install the last version of Botan crypto library.")
    print("http://botan.randombit.net/#download")
    print("For Linux users, try to find it in your package manager.")
    sys.exit(0)

我已下载,但如何安装?

1 个答案:

答案 0 :(得分:0)

如果你已经下载了botan模块,一个简单的解决方案是解压缩文件(如果是压缩的)并将其放在与cryptoshop模块所在的文件夹相同的文件夹中。这应该允许cryptoshop使用botan。

相关问题