上下文 在 emacs 中使用 M-x compile 命令执行 `python3 file_sync.py` 时出现错误 `ModuleNotFoundError: No module named 'watchdog'`.
尝试解决:
1. 在cmd使用 `where python3` 发现并没有我自己的 python 路径
2. 查看环境变量中发现已经配置好了自己安装路径的环境变量
解决方法:
1. 使用 `where python` 命令发现已经存在自己的路径, 说明即使你安装了python-3.x, 也默认使用的是 python.exe
2. 将 `python3 file_sync.py`` 命令修改为 `python file_sync.py` 即可