pip not installing cryptography - cryptography

I am running pip on an Arduino Yun, which runs OpenWRT, a variant of Linux.
On this device, I already have multiple packages installed, such as crypto, pycrypto, pyOpenSSL, etc.
When I run pip install cryptography:
Collecting cryptography
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76895850>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x768950f0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x768951d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76895650>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76895a10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/cryptography/
Could not find a version that satisfies the requirement cryptography (from versions: )
No matching distribution found for cryptography
When I run pip show cryptography, it returns a blank.
When I run pip show pip (for comparison):
---
Metadata-Version: 1.1
Name: pip
Version: 8.1.2
...
When I run pip search cryptography:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76d48690>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76d3dc90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi
^COperation cancelled by user
By contrast, I then tried a different package: pip install crypto:
Requirement already satisfied (use --upgrade to upgrade): crypto in /usr/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): shellescape in /usr/lib/python2.7/site-packages (from crypto)
Requirement already satisfied (use --upgrade to upgrade): Naked in /usr/lib/python2.7/site-packages (from crypto)
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/site-packages (from Naked->crypto)
Requirement already satisfied (use --upgrade to upgrade): pyyaml in /usr/lib/python2.7/site-packages (from Naked->crypto)
Any idea what is going on here, and how I can successfully install cryptography?

It seems pretty clear that you have networking issues. This is not normal:
'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x76895850>: Failed to establish a new connection: [Errno -2] Name or service not known'

Related

pip install tensorflow - no matching distribution

I am following TensorFlow's installation guide for Windows 10 & WSL2.
But I get the following when I finally get to the point of installing TensorFlow,
(base) root#SCEDWLWC164905:~# conda activate tf
(tf) root#SCEDWLWC164905:~# pip install tensorflow
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f445141b6a0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/tensorflow/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f445141b9d0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/tensorflow/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f445141bc40>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/tensorflow/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f445141bdf0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/tensorflow/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f445141bfd0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/tensorflow/
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
WARNING: There was an error checking the latest version of pip.
(tf) root#SCED:~# python --version
Python 3.9.16
(tf) root#SCED:~#
I set up the environment with Python 3.9 as recommended in the above link. I have followed all the NVIDIA driver prerequisites.
I had a look to see if pip was installed,
(tf) root#SCED:~# which pip
/root/miniconda3/envs/tf/bin/pip
It is, so what's the issue here?
EDIT :: There have been some suggestions that this is a Python version issue. I repeat, I am following Tensorflow's official documentation. They seem to be under the impression that Python 3.9 is the one to use - they'd know right? The answers linked to in the comments are badly out of date.
once pip installed, try this line?
python3 -m pip install --default-timeout=10000 tensorflow-macos

Problems with Nexus hosted pypi repos after updating from 3.46 to 3.47

Hello today I updated my NEXUS OSS repo manager from 3.46 to 3.47.
In the system status page I am seeing the error message:
X transactions with excessive retries in last hour
with the counter X steadily mounting.
Users are unable to download pip packages from the repository.
The error is:
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='nexus.mercator-ocean.fr', port=443): Read timed out. (read timeout=15)")': /repository/pypi-all/simple/zarr/
If it works, it works for one package and then the error above happens.
Any ideas ?
OS is Debian 5.10.162-1 (2023-01-21)

Installing pandas on Tails failed

I fail to install pandas on Tails.
I have installed python3 and pip but when I want to install pandas I get the following error:
WARNING: Retrying (Retry(total=4, connect=None, read=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x....>: Failed to establish a new connection: [Errno 101] Network is not available'): /simple/pandas/
...
...
...
ERROR: Could not find a version that satisfies the requirement pandas
ERROR: No matching distribution found for pandas
What could be the problem?

i am trying to run the command "pacman -Syu" on "msys2" and it doesn't work

I just installed the window64 version of msys2 and I try to update the package database and base packages running the "pacman -Syu" command.
I get this error :
$ pacman -Syu
:: Synchronizing package databases...
mingw32.db failed to download
mingw64.db failed to download
ucrt64.db failed to download
clang32.db failed to download
clang64.db failed to download
error: failed retrieving file 'mingw32.db' from mirror.msys2.org : SSL connection timeout
error: failed retrieving file 'mingw64.db' from mirror.msys2.org : SSL connection timeout
error: failed retrieving file 'ucrt64.db' from mirror.msys2.org : SSL connection timeout
warning: too many errors from mirror.msys2.org, skipping for the remainder of this transaction
error: failed retrieving file 'clang32.db' from mirror.msys2.org : SSL connection timeout
error: failed retrieving file 'clang64.db' from mirror.msys2.org : SSL connection timeout
error: failed retrieving file 'mingw32.db' from repo.msys2.org : SSL connection timeout
if anyone has an idea i would appreciate it.

Docker failed while Executing "RUN yum install -y procps"

failure: repodata/repomd.xml from AmazonCorretto: [Errno 256] No more mirrors to try.
#5 0.595 https://yum.corretto.aws/aarch64/repodata/repomd.xml: [Errno 14] curl#60 - "SSL certificate problem: self signed certificate in certificate chain"
executor failed running [/bin/sh -c yum install -y procps]: exit code: 1