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.
Related
That's my question too. When I want to install mlxtend from github I got this error:
this is my code on google colab:
!pip install git+git://github.com/rasbt/mlxtend.git
and I got this error:
Collecting git+git://github.com/rasbt/mlxtend.git
Cloning git://github.com/rasbt/mlxtend.git to /tmp/pip-req-build-4jwtt0vm
Running command git clone -q git://github.com/rasbt/mlxtend.git /tmp/pip-req-build-4jwtt0vm
fatal: unable to connect to github.com:
github.com[0: 140.82.113.3]: errno=Connection timed out
WARNING: Discarding git+git://github.com/rasbt/mlxtend.git. Command errored out with exit status 128: git clone -q git://github.com/rasbt/mlxtend.git /tmp/pip-req-build-4jwtt0vm Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone -q git://github.com/rasbt/mlxtend.git /tmp/pip-req-build-4jwtt0vm Check the logs for full command output.
Please help me how can I fix this error. (I mean connection time out)
I tried updating pip and installing mlxtend and did not succeed.
I have this python package located in a github repository. I can install it from the github link directly like so :
pip install git+https://github.com/mkdocs/mkdocs.git
I would like to do the same, but install some extra dependencies. When using just the package name, we can do :
pip install mkdocs[i18n]
But if I try :
pip install git+https://github.com/mkdocs/mkdocs.git[i18n]
It fails with the following error :
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting git+https://github.com/mkdocs/mkdocs.git[i18n]
Cloning https://github.com/mkdocs/mkdocs.git[i18n] to /tmp/pip-req-build-1ykhyonq
Running command git clone -q 'https://github.com/mkdocs/mkdocs.git[i18n]' /tmp/pip-req-build-1ykhyonq
fatal: unable to access 'https://github.com/mkdocs/mkdocs.git[i18n]/': The requested URL returned error: 400
WARNING: Discarding git+https://github.com/mkdocs/mkdocs.git[i18n]. Command errored out with exit status 128: git clone -q 'https://github.com/mkdocs/mkdocs.git[i18n]' /tmp/pip-req-build-1ykhyonq Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone -q 'https://github.com/mkdocs/mkdocs.git[i18n]' /tmp/pip-req-build-1ykhyonq Check the logs for full command output.
How can I use extra-dependencies with github links ?
Following example 7 from https://pip.pypa.io/en/stable/cli/pip_install/#examples :
pip install "mkdocs[i18n] # git+https://github.com/mkdocs/mkdocs.git"
The '#' symbol usage is is explained in detail in PEP 440, in the section direct references.
This works:
pip install "git+https://github.com/mkdocs/mkdocs#egg=mkdocs[i18n]"
Added #egg=mkdocs.
I am trying to install the disptools package by doing pip install disptools in my terminal.
The disptools package is linked here https://github.com/m-pilia/disptools.
It gives me a long error message during the installation with the main error displayed below.
Building wheel for disptools (setup.py) ... error
ERROR: Command errored out with exit status 1:
...
CMake Error:
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)`
It also includes this in the error:
File "/Users/name/anaconda3/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/6p/16591qb93vs76dysmldcz8140000gn/T/pip-install-vn5twf6v/disptools', '-DDISPTOOLS_DEBUG=OFF', '-DDISPTOOLS_OPT=OFF', '-DDISPTOOLS_VERBOSE=ON', '-DDISPTOOLS_LOW_ORDER_PD=OFF', '-DDISPTOOLS_DOUBLE=OFF', '-DDISPTOOLS_CUDA_SUPPORT=OFF', '-DDISPTOOLS_CUDA_ERROR_CHECK=ON', '-DDISPTOOLS_CUDA_ERROR_CHECK_SYNC=ON', '-DDISPTOOLS_PYTHON_SUPPORT=ON', '-DDISPTOOLS_PYTHON_C_MODULE_NAME=_disptools', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=/private/var/folders/6p/16591qb93vs76dysmldcz8140000gn/T/pip-install-vn5twf6v/disptools/build/lib.macosx-10.9-x86_64-3.6', '-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE=build/temp.macosx-10.9-x86_64-3.6', '-DPYTHON_EXECUTABLE=/Users/name/anaconda3/bin/python3']'
returned non-zero exit status 1.
I have looked everywhere online but I couldn't really find any helpful resources for solving this problem.
Would really appreciate it if someone can help.
With commands, python -m pip install disptools you try to download, compile and install the disptools.
Compilation step fails with a CMake error that tell that it failed to find library OpenMP. You can install it on a Ubuntu/Debian distribution with
sudo apt install libomp-dev
After this, you can launch again the pip command.
I hope you will meet all compilation requirements.
If you are using Anaconda Prompt (recommended),
conda install -c conda-forge dlib
I cannot install rpy2(Python package) via pip or PyCharm in MAC OS.
But I can run Python(via PyCharm) and R(via RStudio) successfully.....
The main error message is
"Error: Tried to guess R's HOME but no command (R) in the PATH." and "Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-OtKzsd/rpy2/".
I guess the problem maybe related to R environment PATH setting?
But I still don't know how to fix this problem....
The complete error message is below:
host-217:~ ChenGuanYing$ sudo pip install rpy2
The directory '/Users/ChenGuanYing/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/ChenGuanYing/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting rpy2
Downloading rpy2-2.7.8.tar.gz (178kB)
100% |████████████████████████████████| 184kB 1.1MB/s
Complete output from command python setup.py egg_info:
Error: Tried to guess R's HOME but no command (R) in the PATH.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-OtKzsd/rpy2/
Two possible solutions, as suggested in the error message:
export R_HOME=
put R command in the system PATH
pycurl installs fine on python2.6 but i get the following error when I try to install in on 2.7 via easy_install on maverick
$ sudo easy_install pycurl
install_dir /usr/local/lib/python2.7/dist-packages/
Searching for pycurl
Reading http://pypi.python.org/simple/pycurl/
Reading http://pycurl.sourceforge.net/
Reading http://pycurl.sourceforge.net/download/
Best match: pycurl 7.19.0
Downloading http://pycurl.sourceforge.net/download/pycurl-7.19.0.tar.gz
Processing pycurl-7.19.0.tar.gz
Running pycurl-7.19.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PFzxzf/pycurl-7.19.0/egg-dist-tmp-oAFjdV
Using curl-config (libcurl 7.21.0)
src/pycurl.c:42: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
Is 2.7 not compatible with pycurl?
sudo apt-get install python-dev
This installs the Python development package that is required and fixes the problem of the missing header file.
(Please read the comment by Corey)