如何使用pip安装github包链接

时间:2018-01-18 09:58:53

标签: python windows github pip tesseract

我想在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

2 个答案:

答案 0 :(得分:2)

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

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

答案 1 :(得分:2)

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

请参阅compilation instructions for w32