【问题标题】:Trouble with executing a command in Anaconda for Python 3.6 [duplicate]在 Python 3.6 的 Anaconda 中执行命令时遇到问题 [重复]
【发布时间】:2021-10-22 05:51:40
【问题描述】:

我正在尝试按照此 YouTube 教程 https://www.youtube.com/watch?v=XsHmtuXucqY 使用 GPT-2 生成一些文本,但在执行命令 git clone https://github.com/openai/gpt-2.git 时遇到问题。 Anaconda 给了我一条错误消息,上面写着:'git' 不被识别为内部或外部命令, 可运行的程序或批处理文件。帮助将不胜感激。

【问题讨论】:

  • 要么你的 git 没有安装,要么你需要设置环境变量以确保它可以在安装目录之外访问。

标签: python git anaconda command


【解决方案1】:

您需要使用安装程序或 conda 安装 git:

conda install git

【讨论】:

    猜你喜欢
    • 2018-02-24
    • 2018-03-07
    • 2015-07-03
    • 2016-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-15
    相关资源
    最近更新 更多