I-love-study / graiax-silkcoder

A simple silkv3 encoder
BSD 3-Clause "New" or "Revised" License
33 stars 2 forks source link

pip #4

Closed Mechorca closed 3 years ago

Mechorca commented 3 years ago

pip安装大佬的库出现了报错...手动下载代码放进项目后也出现了import错误..貌似是找不到_silkv3这个库。请问这是为什么

I-love-study commented 3 years ago

这个库是需要编译的,所以直接放进去当然会出错。。。 请问可以把完整的错误贴上来吗

I-love-study commented 3 years ago

假设报错的有error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ 假设你是Windows,跟按照以下步骤 1.去这里下载生成工具 2.安装Visual Studio installer 3.在installer里面安装Visual Studio 生成工具 2019里勾选“使用C++的桌面开发” image 4.安装完重启电脑,重新pip即可