问题:Win10下安装pyethash报错‘alloca.h’: No such file or directory”
解决方案:
- 从github上下ethash: https://github.com/ethereum/ethash
- 编辑\src\libethash\mmap_win32.c,在最后一个#include后面添加:
#pragma comment(lib, "Shell32.lib")
- 编辑 \src\python\core.c,将
#include <alloca.h>
替换为:
#if defined(_WIN32) || defined(WIN32)
#include <malloc.h>
#else
#include <alloca.h>
#endif
- 在主目录下,执行
python setup.py install