windows11 安装charm成功
安装成功,不过还没测试,不知道有没有什么bug。
我用的是anaconda新建的一个3.5版本的环境。
参考下面两个链接说一下我遇到的问题
https://github.com/hyperledger-indy/indy-anoncreds/blob/9d9cda3d505c312257d99a13d74d8f05dac3091a/windows-installation-guide.md
https://www.cnblogs.com/HumdrumVictor/articles/18985722
(之前好像报了什么错,少一个error: Microsoft Visual C++ 14.0 is required. Get it with “Microsoft Visual C++ Build Tools”: https://visualstudio.microsoft.com/downloads/)我是直接在Visual Studio 2022,工具里面下载了
需要下载的文件github都有。
下面将碰到的问题吧
- MSYS2 报错无法读取配置文件 /etc/pacman.d/mirrorlist.mingw: No such file or directory。解决办法就是直接在路径下新建一个文件mirrorlist.mingw。内容如下:
## Primary
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/$repo/
Server = http://mirrors.ustc.edu.cn/msys2/mingw/$repo/
Server = https://mirrors.ustc.edu.cn/msys2/mingw/$repo/
Server = http://mirrors.aliyun.com/msys2/mingw/$repo/
Server = https://mirrors.aliyun.com/msys2/mingw/$repo/
- 这一步没什么问题
- 使用 Mingw64 和 Python 64 位手动构建和安装 charm-crypto
安装的过程,只要1没问题基本上没有问题 - 这一步,会报一个 flex not found ,运行这个pacman -S bison flex可以安装就不会报错了。漫长的等待。。。。。
- 还有就是在MSYS2 shell中运行时要注意地址“/c/users/user/AppData/Local/Programs/Python/Python35/python.exe ”,类似这样。
- rename python35.lib old_python35.lib报少一个参数,运行下面这个rename python35.lib old_python35.lib python35.lib