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.
Related
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.
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 want to setup manim community repo using poetry. I ran the command "poetry install". I am getting the following error.
Python 3.8.5, Pip 20.2.4
EnvCommandError
Command D:\manim\venv\Scripts\pip.exe install --no-deps file:///C:/Users/abc/AppData/Local/pypoetry/Cache/artifacts/03/ee/1a/ee5da5d7b449da38c4e593ecc6a57342de04222cd7fbe5b126a4e3f
df0/pangocairocffi-0.3.2.tar.gz errored with the following return code 1, and output:
Processing c:\users\abc\appdata\local\pypoetry\cache\artifacts\03\ee\1a\ee5da5d7b449da38c4e593ecc6a57342de04222cd7fbe5b126a4e3fdf0\pangocairocffi-0.3.2.tar.gz
ERROR: Command errored out with exit status 1:
...
...
...
OSError: dlopen() failed to load a library: pango / pango-1 / pango-1.0 / pango-1.0-0
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Use poetry only when you want to contribute to Manim Community itself, or else don't use it.
Now let's, come to the error. What the error, say's is it can't find some shared libraries. According to the docs, it says, you have to install Pango for it to work.
Possibly, you may have missed this step.
https://docs.manim.community/en/latest/installation/win.html#pango-installation
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'm trying to install it on colab notebook.
The command I tried is :
pip install models
It's giving me error as:
Collecting models
Using cached https://files.pythonhosted.org/packages/92/3c/ac1ddde60c02b5a46993bd3c6f4c66a9dbc100059da8333178ce17a22db5/models-0.9.3.tar.gz
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Try:
pip install pymodels
This is documented here. This is because they renamed the module.