安装flycheck后在python文件中用不了

Syntax checker in buffer 15-t.py in python-mode:

  python-flake8 (automatically disabled) reset
    - major mode:         `python-mode' supported
    - may enable:         no
    - executable:         Not found
    - configuration file: Not found
    - `flake8' module:    Missing; sys.path is nil
    - next checkers:      python-pylint, python-mypy

Flycheck cannot use this syntax checker for this buffer.

Flycheck Mode is enabled. Use C-u C-c ! x to enable disabled checkers.

--------------------

Flycheck version: 32snapshot (package: 20210825.1804)
Emacs version:    26.3
System:           x86_64-w64-mingw32
Window system:    w32

flake8在环境变量中不知道为什么就是找不到

(setq flycheck-python-flake8-executable "d:/python/python.exe")
使用这个函数使用绝对路径即可寻找到flake8