【问题标题】:how to install github package link using pip如何使用 pip 安装 github 包链接
【发布时间】:2018-06-27 08:34:27
【问题描述】:

我想在 windows 上使用 pip 安装此链接,python 3.6

https://github.com/charlesw/tesseract-vs2012

输出:

C:\Users\yolo>pip install git+https://github.com/charlesw/tesseract-vs2012.git
Collecting git+https://github.com/charlesw/tesseract-vs2012.git
  Cloning https://github.com/charlesw/tesseract-vs2012.git to c:\users\yolo\appd
ata\local\temp\pip-o2445u8s-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\python36\lib\tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\yolo\\Ap
pData\\Local\\Temp\\pip-o2445u8s-build\\setup.py'

1

【问题讨论】:

    标签: python windows github pip tesseract


    【解决方案1】:

    尝试使用pip install --upgrade pip 升级 pip,然后尝试再次安装您想要的。

    相关:https://github.com/tensorflow/tensorflow/issues/56

    【讨论】:

    • 一个问题,那个 repo 中的项目是 Python 包吗?
    • 我看起来不像,它看起来更像是支持 VS2013 的原始 Tesseract。如果你想使用 tesserOCR,为什么不pip install tesserocrpip install pytesseract
    • pip install tesserocr 不能直接工作,它会为 leptonica 报错。这就是为什么我需要另一种安装方式。
    • 试试 pytesseract。否则,你能找到的最好的解决方案就是不使用 Windows,因为很多包都不能在那里工作(因为我相信你在 Windows 中,对吧?)
    【解决方案2】:

    您指向的存储库缺少setup.py,因此无法使用pip 安装它。它也已过时并被 https://github.com/tesseract-ocr/tesseract 取代。

    请参阅compilation instructions for w32

    【讨论】:

      猜你喜欢
      • 2021-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-15
      • 1970-01-01
      • 2016-05-18
      • 1970-01-01
      相关资源
      最近更新 更多