pip install tensorflow - no matching distribution - tensorflow

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

Related

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.

ambari-agent can not reach ambari-server

When I finished install ambari-server with httpd local repository and Comfire Hosts on webUI, I got some error as follow:
INFO 2018-05-27 15:39:16,776 NetUtil.py:70 - Connecting to https://master:8440/ca
ERROR 2018-05-27 15:39:16,787 NetUtil.py:96 - [Errno 8] _ssl.c:493: EOF occurred in violation of protocol
ERROR 2018-05-27 15:39:16,788 NetUtil.py:97 - SSLError: Failed to connect.Please check openssl library versions.
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2018-05-27 15:39:16,789 NetUtil.py:124 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...
INFO 2018-05-27 15:39:26,793 NetUtil.py:70 - Connecting to https://master:8440/ca
ERROR 2018-05-27 15:39:26,799 NetUtil.py:96 - [Errno 8] _ssl.c:493: EOF occurred in violation of protocol
ERROR 2018-05-27 15:39:26,799 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2018-05-27 15:39:26,801 NetUtil.py:124 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...
My environment message as follow:
CentOS Linux release 7.5.1804 (Core)
Python2.7.5
Java1.8.0_171
OpenSSL1.0.2k
Ambari2.6.2.0
HDP-2.6.5.0
On my other amabri-agent nodes, I can reach master on 8440 port as follow:
[root#slave2 ~]# telnet master 8440
Trying 192.168.17.128...
Connected to master.
Escape character is '^]'.
Please give me some help, thanks a lot!
I am also getting the same issue.
This worked for me.
In /etc/ambari-agent/conf/ambari-agent.ini
Add this line below [security]
force_https_protocol=PROTOCOL_TLSv1_2
In /etc/python/cert-verification.cfg
[https]
verify=disable
(change from default to disable)
Please check JAVA_HOME and openSSL version in your setup

pip not installing 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'