When I import module tool
, I get the following error message,
File "/Users/bird/Desktop/various-examples-of-web-crawlers/venv/lib/python3.7/site-packages/tool/__init__.py", line 11, in <module>
from context_locals import app, local
ModuleNotFoundError: No module named 'context_locals'
Operating system:macOS Sierra 10.12.6
IDE: pycharm
Code:
import urllib.request
import urllib.parse
import re
import tool
if __name__ == '__main__':
#引入工具类
self_tool = tool.Tool()
I tried to find a solution on google, but failed.