We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
今天安装了一天,遇到了几个问题,分享一下,方便后面类似遇到的同学。
AHOCORASICK_BYTES=1 pip install git+https://github.com/WojciechMula/pyahocorasick.git
git clone https://github.com/WojciechMula/pyahocorasick.git
build_as_bytes
True
python setup.py install
pieces = json.load(open(pieces))
pieces = json.load(open(pieces, encoding="utf-8"))
The text was updated successfully, but these errors were encountered:
非常感谢,已经很多年没有windows开发经验了😂
Sorry, something went wrong.
No branches or pull requests
今天安装了一天,遇到了几个问题,分享一下,方便后面类似遇到的同学。
1. python的版本问题:
2. pyahocorasick的安装问题:
AHOCORASICK_BYTES=1 pip install git+https://github.com/WojciechMula/pyahocorasick.git
,我在虚拟环境下没有安装成功。git clone https://github.com/WojciechMula/pyahocorasick.git
build_as_bytes
这个变量直接设置为True
。保证AHOCORASICK_BYTES安装python setup.py install
,当然,还需要一个C++的库,这个直接按照错误提示下载安装就好了,这个简单,就是有点大。3. 会提示GBK编码问题(这个应该就是在windows中存在):
pieces = json.load(open(pieces))
直接指定编码:pieces = json.load(open(pieces, encoding="utf-8"))
The text was updated successfully, but these errors were encountered: