【问题标题】:GIT Bash error = bash: winpty: command not foundGIT Bash错误= bash:winpty:找不到命令
【发布时间】:2018-10-19 18:49:15
【问题描述】:

使用windows搜索;在以下位置找到python.exe: C:\Users\Michael\Anaconda3\pkgs\python-3.6.4-h6538335_1

进入 GIT Bash:

$ echo 'export PATH="$PATH:/c/Users/Michael/Anaconda3/pkgs/python-3.6.4-h6538335_1:/c/Users/Michael/Anaconda3/pkgs/python-3.6.4-h6538335_1/Scripts"' >> .bashrc
$ source .bashrc
$ python --version

收到:

bash: winpty: 找不到命令

【问题讨论】:

    标签: python-3.x git windows-10 anaconda git-bash


    【解决方案1】:

    我使用的是 Linux 操作系统,但我会尝试将 python.exe 路径添加到 Windows 路径变量(对于用户或全局)。

    查看此链接:Adding directory to PATH Environment Variable in Windows

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-06-26
      • 2016-06-19
      • 2022-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-21
      • 2013-03-22
      相关资源
      最近更新 更多