Pytype找不到python3解释器

时间:2020-04-15 11:19:43

标签: python python-3.x pytype

我正在尝试在项目上运行pytype,但我不断收到错误CRITICAL Could not find a valid python3.5 interpreter in path (found Python 2.7.17)。但是,我已经安装了python3。我也有一个别名alias python="python3"

  • python -V-Python 3.6.9
  • python3 -V-Python 3.6.9
  • python2 -V-Python 2.7.17

如何运行pytype

1 个答案:

答案 0 :(得分:0)

在包含 setup.cfgpython_version = 3.5 目录中运行 pytype 时出现此错误。暂时删除 setup.cfg 为我修复了它。

相关问题