我正在尝试通过终端在 Mac 上使用病态胡子。
我已经安装了最新版本的 pf python (homebrew),然后安装了 cheetah (git 然后 python setup.py install)。当我终于尝试:
pythonickbeard.py我收到这条消息:
抱歉,需要 Python 模块 Cheetah 2.1.0 或更高版本。
那有什么问题?猎豹版本是3.0.0 python是2.7。谢谢 :)
-编辑
调查病态胡子.py:
# Check needed software dependencies to nudge users to fix their setup
import sys
if sys.version_info < (2, 5):
sys.exit("Sorry, requires Python 2.5, 2.6 or 2.7.")
检查系统:
2.7.13 (default, Apr 4 2017, 08:47:57)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)]
它是:
try:
import Cheetah
if Cheetah.Version[0] != '2':
raise ValueError
except ValueError:
sys.exit("Sorry, requires Python module Cheetah 2.1.0 or newer.")
except:
sys.exit("The Python module Cheetah is required")
猎豹版本告诉3.0.0 ,这对我来说很有意义=\