question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jaxlib installation/upgrade broken ?

See original GitHub issue

Hi!

I am trying to update my current Jaxlib (1.43) to the latest version(1.47), just as you state. I have tried several things but I keep getting this warning/error and it’s not installed ( I do have internet, I can install/upgrade other packages):

Collecting jaxlib==0.1.47
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d6033160>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /jax-releases/cuda101/jaxlib-0.1.47-cp37-none-linux_x86_64.whl
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d6047c50>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /jax-releases/cuda101/jaxlib-0.1.47-cp37-none-linux_x86_64.whl
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d60478d0>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /jax-releases/cuda101/jaxlib-0.1.47-cp37-none-linux_x86_64.whl
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d6047940>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /jax-releases/cuda101/jaxlib-0.1.47-cp37-none-linux_x86_64.whl
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d6047550>: Failed to establish a new connection: [Errno 101] Network is unreachable')': /jax-releases/cuda101/jaxlib-0.1.47-cp37-none-linux_x86_64.whl
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Max retries exceeded with url: /jax-releases/cuda101/jaxlib-0.1.47-cp37-none-linux_x86_64.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa0d6047630>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

My installation script:

PYTHON_VERSION=cp37  # alternatives: cp35, cp36, cp37, cp38
CUDA_VERSION=cuda101  # alternatives: cuda92, cuda100, cuda101, cuda102
PLATFORM=linux_x86_64  # alternatives: linux_x86_64
BASE_URL='https://storage.googleapis.com/jax-releases'
pip install --upgrade $BASE_URL/$CUDA_VERSION/jaxlib-0.1.47-$PYTHON_VERSION-none-$PLATFORM.whl
python -m pip install --upgrade jax  # install jax

Thanks 😃 !!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jakevdpcommented, Dec 29, 2020

I found that running

pip install pip==20.3.3
pip install --upgrade jax jaxlib==0.1.52+cuda101 -f https://storage.googleapis.com/jax-releases/jax_releases.html

reproduces the different version in metadata error, but using older versions of pip do not result in this error. For example, this installs correctly:

pip install pip==20.2.4
pip install --upgrade jax jaxlib==0.1.52+cuda101 -f https://storage.googleapis.com/jax-releases/jax_releases.html

I suspect that the pip 20.3 dependency resolver places stricter requirements on the contents of package metadata.

1reaction
hawkinspcommented, May 20, 2020

Ah! Sorry, that should have been pip install ... not pip install -e .... That said, sounds like we solved this problem. Great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change log - JAX documentation
5 or newer. Breaking changes: The install commands for GPU jaxlib are as follows: pip install --upgrade pip ...
Read more >
Not able to install jaxlib - Stack Overflow
I am trying to install jaxlib on my windows ...
Read more >
jax_CNN_0.97+ - Kaggle
#!pip install --upgrade pip #!pip install --upgrade "jax[tpu]>=0.2.16" -f ... user can result in broken permissions and conflicting behaviour with the ...
Read more >
Jax - :: Anaconda.org
noarch v0.4.1. conda install. To install this package run one of the following: conda install -c conda-forge jax conda install -c "conda-forge/label/broken" ...
Read more >
2022 - Vikram Aggarwal
Upgrading an old computer from one Ubuntu LTS version to the next: 20.04 to ... had happened half-way in the install process, leading...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found