现象
Python 安装某些包的时候,由于需要C++进行编译。可能会出现 Microsoft Visual C++ 14.0 is required
比如 pip install marisa-trie
解决办法:
1 下载编译好的.whl 文件, 直接pip install xx.whl
2 安装 Microsoft Visual C++ Build Tools
链接:https://pan.baidu.com/s/1qwul9yUVFDThBpZXqjHDiQ
提取码:0r5l
3 安装好2中的工具后,在powershell 中运行 pip install marisa-trie(因为cmd中运行还是可能报错)或者在pycharm的project interpreter中进行添加