- Community Home
- >
- Software
- >
- HPE Morpheus Software
- >
- HPE Morpheus Enterprise
- >
- Upgrading Python pip
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 01:28 PM
08-28-2023 01:28 PM
Upgrading Python pip
I’m wondering if there is a way to upgrade pip. I understand Morpheus creates virtual environment dynamically every time a task gets run, and for some reason pip version is always 9.0.1.
The task is using PYTHON PATH: /usr/bin/python3, and pip version is 21.3.1.
Thank you.
- Tags:
- automation
- Tasks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 01:37 PM
08-29-2023 01:37 PM
Re: Upgrading Python pip
I imagine you’re running on CentOS/RHEL 7.9. pip 9.0.1 is what got shipped with python-virtualenv-15.1.0-7.el7_9.noarch
. That version gets installed by default on every virtualenv that is created. There’s currently no way in a Morpheus python task to override anything to do with pip or virtualenv, save for the python binary that gets used.
A bit of a hacky workaround is to point /bin/virtualenv to a new one. I tested this in my lab, and it worked with both python2 and 3.6. The bad news is that even python 3.6 has been out of security support for almost 2 years now.
I just installed python36-virtualenv
and copied /bin/virtualenv-3
onto /bin/virtualenv
. This is easily undone as /bin/virtualenv-2
was the original.
You could potentially use this method to install whatever virtualenv you wanted and point /bin/virtualenv
to that.