How do I solve the issue “No module name Botan”

前提是你 提交于 2019-12-01 21:22:36

make is a linux command

According to the botan website you can use nmake as a replacement on windows ( http://wiki.c2.com/?UsingNmake ) :

On Windows

You need to have a copy of Python installed, and have both Python and your chosen compiler in your path. Open a command shell (or the SDK shell), and run:

  $ python configure.py --cc=msvc (or --cc=gcc for MinGW) [--cpu=CPU] 
  $ nmake 
  $ botan-test.exe 
  $ nmake install

Botan supports the nmake replacement Jom which enables you to run multiple build jobs in parallel.

source : https://botan.randombit.net/manual/building.html

For completeness, here's how I made it work on a Mac

Assuming you have brew installed.

brew install botan

You may need to install other functionality first:

brew install gmp
brew install mpfr
brew install mpc

Find out where botan got installed with brew info botan. My location is /usr/local/Cellar/botan/2.6.0

In that folder, you'll find lib/python2.7/site-packages, copy the contents of this folder into your Python's installation site-packages folder.

Note 1: At the time of this writing, only python 2.7 seems to be supported, but I'm using python 3.6 and everything seems to be working.

Note 2: If the file is called botan2.py, you may need to rename it to botan.py in your python's site-packages folder.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!