【问题标题】:error when trying to find files in git repo: ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/AppleInternal尝试在 git repo 中查找文件时出错:错误:由于 OSError:无法安装软件包:[Errno 2] 没有这样的文件或目录:\'/AppleInternal
【发布时间】:2023-02-11 13:05:18
【问题描述】:

我正在尝试通过此处列出的回购手册说明在我的计算机上从 Github 克隆并运行一个项目:

https://github.com/antoinelame/GazeTracking

我已经做了以下事情:

git clone https://github.com/antoinelame/GazeTracking.git
pip3 install -r requirements.txt

但是当我运行最后一行时,出现以下错误:错误:无法打开需求文件:[Errno 2] 没有这样的文件或目录:'requirements.txt' 即使我去检查并能够在回购所以我不确定为什么我会收到错误

为了排除故障,我发现大多数人会运行以下行: pip3 冻结 > requirements.txt

但是现在,当我尝试运行 install requirements.txt 行时,出现了一个新错误: 错误:由于 OSError 无法安装软件包:[Errno 2] 没有这样的文件或目录:'/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/python3/python3-103/six-1.15.0 -py2.py3-none-any.whl'

谁能解释可能导致错误的原因以及我如何解决它?

期待安装工作,这样我就可以运行演示

python example.py

【问题讨论】:

    标签: python github terminal


    【解决方案1】:

    打开requirements.txt 并删除该行:

    six @ file:///AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/python3/python3-103/six-1.15.0-py2.py3-none-any.whl
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-04
      • 2022-08-16
      • 1970-01-01
      • 1970-01-01
      • 2023-02-15
      • 2021-06-27
      • 2021-05-25
      • 2019-05-22
      相关资源
      最近更新 更多