Я использую Python 3.7 для своего проекта.Затем, когда я попытался сделать
edamame$ git commit --amend --no-edit
, я получил следующую ошибку (хотя git status
работает нормально):
Your PYTHONPATH points to a site-packages dir for Python 3.x but you are running Python 2.x!
PYTHONPATH is currently: "/Users/edamame/tools/sim/scripting/:/usr/local/lib/python3.7/:/usr/local/lib/python3.7/site-packages/"
You should `unset PYTHONPATH` to fix this.
Я попробовал следующее, но не повезло:
edamame$ pip3 install git
Collecting git
Could not find a version that satisfies the requirement git (from versions: )
No matching distribution found for git
Так что мне приходится каждый раз устанавливать PYTHONPATH вручную, как показано ниже, что очень неудобно.Любой совет?Спасибо!
edamame$ export PYTHONPATH=