【问题标题】:Pytype can't find python3 interpreterPytype 找不到 python3 解释器
【发布时间】:2020-12-30 23:33:14
【问题描述】:

我正在尝试在一个项目上运行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

【问题讨论】:

  • python3 -m pytype .... 工作吗?
  • @gold_cy nop,给出完全相同的错误

标签: python python-3.x pytype


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2022-01-21
    • 2016-08-12
    • 1970-01-01
    • 2015-03-21
    • 2019-08-05
    • 2018-09-05
    • 1970-01-01
    • 2014-01-30
    相关资源
    最近更新 更多