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

前端 未结 2 1110
长发绾君心
长发绾君心 2021-01-20 15:01

I am using windows 8 and python 3.6.1 I\'ve done the following command in my cmd:

pip install cryptoshop

However, when I run the following python code:

相关标签:
2条回答
  • 2021-01-20 15:07

    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.

    0 讨论(0)
  • 2021-01-20 15:13

    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

    0 讨论(0)
提交回复
热议问题