Installing faster-than-requests Python - python

When using: pip install faster-than-requests
i get this error:
WARNING: Discarding
https://files.pythonhosted.org/packages/f0/9b/f392487c0ddb086aad681a781fbb1da4fcd2761920d20cfae18ecb724e67/faster_than_requests-21.03.03.zip#sha256=3cc247556e10c64d8897933304670c873236026b4ef9f219215b124e990c2dac
(from https://pypi.org/simple/faster-than-requests/)
(requires-python:>=3.6). Command errored out with exit status 1:
python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement
faster-than-requests (from versions: 21.3.3)
ERROR: No matching distribution found for faster-than-requests

Related

python 2 module dependency on python 3

For one of the test with avocado on power architecture, I am getting an error for a dependency module as:
ERROR: No module named 'autotest'
I tried installing this module with pip and I am getting python 2 dependency error as below
eck_version.py", line 58, in find_desired_python
raise ValueError('Python 2.x version 2.4 or better is required')
ValueError: Python 2.x version 2.4 or better is required
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c2/3c/733f2a67e63e894256d50c58d237c1b2df9906aba0c937500b2b72fa8b86/autotest-0.16.1.tar.gz#sha256=14834ebfa1d6818c52ae99324005d605832e2e62d0039eeb4f1b7ccf9be2aa20 (from https://pypi.org/simple/autotest/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement autotest (from versions: 0.16.1, 0.16.2, 0.16.3, 0.16.4)
ERROR: No matching distribution found for autotest

Multiple errors trying to install jq

%pip install jq
returns the following error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\myacn\anaconda3\python.exe' 'C:\Users\myacn\anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\myacn\AppData\Local\Temp\tmpygza7t_7'
cwd: C:\Users\myacn\AppData\Local\Temp\pip-install-l6yh1hi9\jq
Complete output (7 lines):
running bdist_wheel
running build
running build_ext
Downloading https://github.com/kkos/oniguruma/releases/download/v6.9.4/onig-6.9.4.tar.gz
Downloaded https://github.com/kkos/oniguruma/releases/download/v6.9.4/onig-6.9.4.tar.gz
Executing: ./configure CFLAGS=-fPIC --prefix=C:\Users\myacn\AppData\Local\Temp\pip-install-l6yh1hi9\jq\_deps\onig-install-6.9.4
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Failed building wheel for jq
ERROR: Could not build wheels for jq which use PEP 517 and cannot be installed directly
Looking online this link resolves for mac and linux, I'm not entirely familiar with the right installation for windows, trying %pip install autoconf automake libtool gives
Collecting autoconf
Using cached autoconf-0.7.1-py3-none-any.whl (10 kB)
Note: you may need to restart the kernel to use updated packages.
ERROR: Could not find a version that satisfies the requirement automake (from versions: none)
ERROR: No matching distribution found for automake
Collecting jq
Using cached jq-1.1.1.tar.gz (69 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: jq
Building wheel for jq (PEP 517): started
Building wheel for jq (PEP 517): finished with status 'error'
Failed to build jq
Note: you may need to restart the kernel to use updated packages.
LOAD DURATION: 0:00:11.548563
ERROR: Command errored out with exit status 1:
command: 'C:\Users\myacn\anaconda3\python.exe' 'C:\Users\myacn\anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\myacn\AppData\Local\Temp\tmpygza7t_7'
cwd: C:\Users\myacn\AppData\Local\Temp\pip-install-l6yh1hi9\jq
Complete output (7 lines):
running bdist_wheel
running build
running build_ext
Downloading https://github.com/kkos/oniguruma/releases/download/v6.9.4/onig-6.9.4.tar.gz
Downloaded https://github.com/kkos/oniguruma/releases/download/v6.9.4/onig-6.9.4.tar.gz
Executing: ./configure CFLAGS=-fPIC --prefix=C:\Users\myacn\AppData\Local\Temp\pip-install-l6yh1hi9\jq\_deps\onig-install-6.9.4
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Failed building wheel for jq
ERROR: Could not build wheels for jq which use PEP 517 and cannot be installed directly
Seems like automake was the issue.
Reading another thread here, the error message is slightly different: the link talks about bottleneck, but mine does not. Going through that thread I first tried downgrading pip pip install pip==18.1, restarted kernel,
Here's the new errror:
Failed building wheel for jq
Command "C:\Users\myacn\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\myacn\\AppData\\Local\\Temp\\pip-install-m3mejes3\\jq\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\myacn\AppData\Local\Temp\pip-record-_38z9t11\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\myacn\AppData\Local\Temp\pip-install-m3mejes3\jq\
You are using pip version 18.1, however version 20.3b1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I then downloaded Visual Studio, specifically checking C++ install tools like the steps indicated; I tried re-running with updated pip and 18.1, and get the same errors.

Installing contextily on mac

I am trying to install contextily package and get the error below. Do you have any ideas how to overcome it? Cheers.
(base) 100KOTTONs-MacBook-Air:~ 100kotton$ pip3 install contextily
Collecting contextily
Using cached https://files.pythonhosted.org/packages/10/34/2aabf40c1acfb4b2f623e90f1a130eba80fd664a2d91c801558acebe3d3c/contextily-0.99.0.tar.gz
Collecting cartopy (from contextily)
Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /anaconda3/bin/python /anaconda3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/h1/gt1kllm16qvd5s9ynxh21cy40000gn/T/tmphd534ujf
cwd: /private/var/folders/h1/gt1kllm16qvd5s9ynxh21cy40000gn/T/pip-install-y8fj50xl/cartopy
Complete output (3 lines):
setup.py:171: UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.
'.'.join(str(v) for v in GEOS_MIN_VERSION), ))
Proj 4.9.0 must be installed.
----------------------------------------
ERROR: Command errored out with exit status 1: /anaconda3/bin/python /anaconda3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/h1/gt1kllm16qvd5s9ynxh21cy40000gn/T/tmphd534ujf Check the logs for full command output.

how to install geoviews in python?

i was trying to install geoviews using pip but got errors.
C:\Users\jainil>pip install geoviews==1.6.2
Collecting geoviews==1.6.2
Using cached https://files.pythonhosted.org/packages/5d/76/7aa62a5dfdec25ab9f921223bd26507bb603bc5f08a4a7057d3f5e24f42b/geoviews-1.6.2-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.0 in c:\users\jainil\anaconda3\lib\site-packages (from geoviews==1.6.2) (1.16.4)
Requirement already satisfied: holoviews>=1.11.1 in c:\users\jainil\anaconda3\lib\site-packages (from geoviews==1.6.2) (1.12.3)
Requirement already satisfied: bokeh>=1.0.0 in c:\users\jainil\anaconda3\lib\site-packages (from geoviews==1.6.2) (1.2.0)
Collecting cartopy>=0.16.0 (from geoviews==1.6.2)
Using cached https://files.pythonhosted.org/packages/e5/92/fe8838fa8158931906dfc4f16c5c1436b3dd2daf83592645b179581403ad/Cartopy-0.17.0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Complete output from command 'C:\Users\jainil\Anaconda3\python.exe' 'C:\Users\jainil\Anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\jainil\AppData\Local\Temp\tmp25d9ovmd':
ERROR: setup.py:171: UserWarning: Unable to determine GEOS version. Ensure you have 3.3.3 or later installed, or installation may fail.
'.'.join(str(v) for v in GEOS_MIN_VERSION), ))
Proj 4.9.0 must be installed.
----------------------------------------
ERROR: Command "'C:\Users\jainil\Anaconda3\python.exe' 'C:\Users\jainil\Anaconda3\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\jainil\AppData\Local\Temp\tmp25d9ovmd'" failed with error code 1 in C:\Users\jainil\AppData\Local\Temp\pip-install-sjcurctz\cartopy
ok it is solved.
solved by conda install -c scitools cartopy

Unable to install pyautogui through pip install with error1

I'm trying to install pyautogui through code 'pip install pyautogui'
But the program always give me an error like following
I started Visual Studio Code with Administration Authority
=========================================================================================
(.venv) C:\Users\USer\Desktop\pythoncode>pip install pyautogui
Collecting pyautogui
Using cached https://files.pythonhosted.org/packages/19/ef/438d80abd396fd2d124bd37c07c765f913723c54197c4c809d85c8ff5a43/PyAutoGUI-0.9.41.tar.gz
Collecting pymsgbox (from pyautogui)
Using cached https://files.pythonhosted.org/packages/b6/65/86379ede1db26c40e7972d7a41c69cdf12cc6a0f143749aabf67ab8a41a1/PyMsgBox-1.0.6.zip
Collecting PyTweening>=1.0.1 (from pyautogui)
Using cached https://files.pythonhosted.org/packages/b9/f8/c32a58d6e4dff8aa5c27e907194d69f3b57e525c2e4af96f39c6e9c854d2/PyTweening-1.0.3.zip
Requirement already satisfied: Pillow in c:\users\user\desktop\pythoncode\.venv\lib\site-packages (from pyautogui) (5.4.1)
Collecting pyscreeze (from pyautogui)
Using cached https://files.pythonhosted.org/packages/f3/27/073bf07400943e38b06ba40def60ec489d114fd7356c2db5a2f793454312/PyScreeze-0.1.19.tar.gz
Collecting pygetwindow (from pyautogui)
Using cached https://files.pythonhosted.org/packages/01/ed/56d4a369c6e18f6b239d9ef37b3222ba308bfebf949571b2611ff7d64f1d/PyGetWindow-0.0.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\USer\AppData\Local\Temp\pip-install-wupkdbtd\pygetwindow\setup.py", line 11, in <module>
long_description = fh.read()
UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 903: illegal multibyte sequence
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\USer\AppData\Local\Temp\pip-install-wupkdbtd\pygetwindow\
=========================================================================================
I use 32bit windows and 32bit python 3.7
I already upgrade my pip with code pip install --upgrade pip.(current version is 19.0.2 now)
And I have tried a prompt with administration authority and type pip install pyautogui but Prompt also gave me the same error :
Command "python seup.py egg_info" failed with error code 1 in C:\Users\USer\AppData\Local\Temp\pip-install-e2r19eza\pygetwindow\
I already try the solution that the follwing link suggets but I failed
"pip install unroll": "python setup.py egg_info" failed with error code 1
I failed to do easy_install -U setuptools with an error:
WinError 5] Access is denied : 'c:\\users\\user\\desktop\\pythoncode\\.venv\\Scripts\\easy_install.exe'
Please share your wisdom to the beginner
Try to install as an Administrator.
pip install pyautogui

Categories

Resources