【发布时间】:2022-01-13 23:49:50
【问题描述】:
目的是从https://github.com/openskynetwork/opensky-api安装python包'opensky-api'
在 Anaconda 提示符下使用以下命令。 使用我的 github 用户名和我的令牌登录
我的命令行有什么错误?
命令行 (基础)C:\Usersr\src\opensky>
pip install git+https://github.com/openskynetwork/opensky.git#egg=opensky
错误信息
Collecting opensky
Cloning https://github.com/openskynetwork/opensky.git to c:\users\appdata\local\temp\pip-install-ovtrt2xb\opensky_9457d92114a54f67b0ed1a53e5ac76c2
Running command git clone --filter=blob:none -q https://github.com/openskynetwork/opensky.git 'C:\Users\AppData\Local\Temp\pip-install-ovtrt2xb\opensky_9457d92114a54f67b0ed1a53e5ac76c2'
Logon failed, use ctrl+c to cancel basic credential prompt.
bash: /dev/tty: No such device or address
Username for 'https://github.com': error: failed to execute prompt script (exit code 1)
"my_username@github.com"
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
stty: 'standard input': Inappropriate ioctl for device
Password for 'https://my_password@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/openskynetwork/opensky.git/'
WARNING: Discarding git+https://github.com/openskynetwork/opensky.git#egg=opensky. Command errored out with exit status 128: git clone --filter=blob:none -q https://github.com/openskynetwork/opensky.git 'C:\Users\AppData\Local\Temp\pip-install-ovtrt2xb\opensky_9457d92114a54f67b0ed1a53e5ac76c2' Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement opensky (unavailable) (from versions: none)
ERROR: No matching distribution found for opensky (unavailable)
【问题讨论】:
-
存储库不存在。检查名称。
-
remote: Invalid username or password. -
@John Haley:你可以看看你是否在浏览器中加载了这个 URL:github.com/openskynetwork/opensky-api
-
这是一个不同的存储库 url。
-
@FlyingTeller:我可以在没有任何用户名/令牌的情况下从公共存储库克隆。下面的消息: $ git clone github.com/openskynetwork/opensky-api.git Cloning into 'opensky-api'... 远程:枚举对象:615,完成。远程:计数对象:100% (78/78),完成。远程:压缩对象:100% (24/24),完成。远程:总计 615(增量 67),重用 54(增量 54),打包重用 537 接收对象:100%(615/615),6.02 MiB | 1.21 MiB/s,完成。解决增量:100% (260/260),完成。
标签: python github installation pip package