Screenshot of the error 使用pip3安装nltk后,安装nltk 我无法在macOS中导入python shell中的nltk File "<stdin>", line 1/Library/Python/3.9/lib/python/site-packages/regex/regex.py", line
我在Python中使用regex搜索字符串中的多个模式。一个简化的例子如下:s = "vrhvydhvkzejjvksdlstringvhehvehvurejlcslvdk" #string to look into
p = [b)(' + " | ".join(p) + '){s<=3}') #regex, allowing for 3
enter code hereFailed building wheel for regex
运行setup.py clean无法构建regex安装收集的包: html5lib、pathlib、regex3/regex.py -> build/lib.macosx-10.7-x86_64-3.6拷贝Python33/regex_core.py -> /lib.ma