【问题标题】:How to use that github api right?如何正确使用该 github api?
【发布时间】:2019-11-03 12:04:40
【问题描述】:

如何安装此软件包?

我安装并更新了 pip,setuptools,git 但我无法安装:

C:\Users\shait>pip install git+https://github.com/SocksPls/hltv-api.git

Collecting git+https://github.com/SocksPls/hltv-api.git
  Cloning https://github.com/SocksPls/hltv-api.git to c:\users\shait\appdata\local\temp\pip-req-build-h5h_opsb
  Running command git clone -q https://github.com/SocksPls/hltv-api.git 'C:\Users\shait\AppData\Local\Temp\pip-req-build-h5h_opsb'
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\shait\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\shait\\AppData\\Local\\Temp\\pip-req-build-h5h_opsb\\setup.py'"'"'; __file__='"'"'C:\\Users\\shait\\AppData\\Local\\Temp\\pip-req-build-h5h_opsb\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\shait\AppData\Local\Temp\pip-req-build-h5h_opsb\pip-egg-info'
         cwd: C:\Users\shait\AppData\Local\Temp\pip-req-build-h5h_opsb\
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\shait\appdata\local\programs\python\python37-32\lib\tokenize.py", line 447, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\shait\\AppData\\Local\\Temp\\pip-req-build-h5h_opsb\\setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

【问题讨论】:

标签: python github pip


【解决方案1】:

错误

FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\shait\AppData\Local\Temp\pip-req-build-h5h_opsb\setup.py' 

告诉你 pip 找不到setup.py 文件。如果您查看 Github 上的存储库,您会发现没有 setup.py,也没有任何其他与打包相关的文件,因此无法使用 pip 安装该软件。您需要手动将其下载到合适的目录并安装需求。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-13
    • 2014-09-26
    • 1970-01-01
    • 2021-02-06
    相关资源
    最近更新 更多