简体   繁体   中英

Error Installing Python Package from Github Using PIP

Object is to install python package 'opensky-api' from https://github.com/openskynetwork/opensky-api

Used following command at Anaconda prompt. Logging in with my github username and my token

What mistake is in my command line?

command line (base) C:\Usersr\src\opensky>

pip install git+https://github.com/openskynetwork/opensky.git#egg=opensky

error message

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)

Installation of the package was successful from the local clone using: pip install C:/Users/opensky/opensky-api/python.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM