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.

Upgrade pip version

See original GitHub issue

We are facing an issue when installing tfx package through pip3 from inside the container (version 9.0.3):

# pip3 install tfx
Collecting tfx
  Downloading https://files.pythonhosted.org/packages/27/ef/07522116d0680934ade5622322af06ed55d9820c3c23a7d97b62db1438db/tfx-0.15.0-py3-none-any.whl (504kB)
    100% |████████████████████████████████| 512kB 2.2MB/s 
Collecting tensorflow<3,>=1.15 (from tfx)
  Could not find a version that satisfies the requirement tensorflow<3,>=1.15 (from tfx) (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow<3,>=1.15 (from tfx)
You are using pip version 9.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

The same installation succeeds after upgrading pip through pip3 install --upgrade pip.

Is there a plan to have the pip version upgraded?

There was https://github.com/GoogleCloudPlatform/python-runtime/pull/201 which downgraded pip from 18.0 to 9.0.3, referencing https://github.com/pypa/pip/issues/5240. A related issue https://github.com/pypa/pip/issues/5599 is still open but it says that the problems are not with pip itself but due to incorrect use of pip. Perhaps they could be fixed or worked around in the pip installation in the Python runtime image?

@dlorenc @liyanhui1228

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Dallas62commented, Aug 7, 2020

Hi @donmccasland Do you have an update on this ? I face the same case as @eddie-scio. Or do you have any workaround ?

0reactions
abitrollycommented, Aug 20, 2021
➜  ~ podman run -it gcr.io/google-appengine/python pip3 --version
pip 21.1.3 from /opt/python3.7/lib/python3.7/site-packages/pip (python 3.7)

Close?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Upgrade PIP Package to Latest Version [Update PIP]
Step 1: Install Python and pip · Step 2: Check the pip Version and Verify the Installation · Step 3: Managing Python Packages...
Read more >
How do I update/upgrade pip itself from inside my virtual ...
go to command prompt · and use this command · python -m pip install -–upgrade pip · Dont forget to restart the editor,to...
Read more >
Installation - pip documentation v22.3.1
Python comes with an ensurepip module1, which can install pip in a Python environment. Linux. $ python -m ensurepip --upgrade.
Read more >
How to Upgrade PIP in Windows - Data to Fish
Upgrade PIP in Windows; Check the version of PIP; Downgrade PIP to a previous version. In order to upgrade PIP in Windows, you'll...
Read more >
Three Easy Methods to Upgrade Pip to the Latest Version
Step 1: Open Anaconda Navigator · Step 3: Find Pip · Step 3: Choose Pip · Step 4: Mark for Update · Step...
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