我试图在其中运行python代码,但即使没有安装pip,它也会给出no module错误。
jdominic@kali:~/Pythondir $ python auto_move.py Traceback (most recent call last): File "auto_move.py", line 1, in <module> from watchdog.observer import observer ModuleNotFoundError: No module named 'watchdog.observer'
pip3显示看门狗
jdominic@kali:~/Pythondir$ pip3 show watchdog Name: watchdog Version: 0.9.0 Summary: Filesystem events monitoring Home-page: http://github.com/gorakhargosh/watchdog Author: Yesudeep Mangalapilly Author-email: yesudeep@gmail.com License: Apache License 2.0 Location: /home/jdominic/.local/lib/python3.7/site-packages Requires: argh, pathtools, PyYAML Required-by:
python版本
jdominic@kali:~/Pythondir$ python -V Python 3.7.3rc1
jdominic@kali:~/Pythondir$ python -m site --user-base /home/jdominic/.local
jdominic@kali:~/Pythondir$ python -m site --user-site /home/jdominic/.local/lib/python3.7/site-packages
任何人都可以给我一些想法
谢谢
约翰