dvershinin / pip-safe Goto Github PK
View Code? Open in Web Editor NEWSafe pip installer for command-line Python apps
Home Page: https://www.getpagespeed.com/server-setup/do-not-run-pip-as-root
License: BSD 2-Clause "Simplified" License
Safe pip installer for command-line Python apps
Home Page: https://www.getpagespeed.com/server-setup/do-not-run-pip-as-root
License: BSD 2-Clause "Simplified" License
I tried to install pip-safe on amazon linux using the install instructions but yum reports that it can't find pip-safe. Is amazon linux supported?
Thanks in advance!
Hi there! Thanks for this great piece of code that is pip-safe!
I'm run the following command:
$ pip-safe --system update awscli
Then the output warns me:
WARNING: You are using pip version 21.3.1; however, version 22.0.3 is available.
You should consider upgrading via the '/opt/pip-safe/awscli/bin/python -m pip install --upgrade pip' command.
Then I run the command suggested above to upgrade pip inside the pip-safe env. All went fine:
$ /opt/pip-safe/awscli/bin/python -m pip install --upgrade pip
Requirement already satisfied: pip in /opt/pip-safe/awscli/lib64/python3.9/site-packages (21.3.1)
Collecting pip
Using cached pip-22.0.3-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.3.1
Uninstalling pip-21.3.1:
Successfully uninstalled pip-21.3.1
Successfully installed pip-22.0.3
$ ls -1 /opt/pip-safe/awscli/lib64/python3.9/site-packages/
pip/
pip-22.0.3.dist-info/
But if I run the first command again:
$ pip-safe --system update awscli
INFO: Upgrading awscli system-wide ...
WARNING: You are using pip version 21.3.1; however, version 22.0.3 is available.
You should consider upgrading via the '/opt/pip-safe/awscli/bin/python -m pip install --upgrade pip' command.
$ ls -1 /opt/pip-safe/awscli/lib64/python3.9/site-packages/
pip/
pip-21.3.1.dist-info/
Note as pip was downgraded from 22.0.3 to 21.3.1.
How do I upgrade pip inside a pip-safe environment for good? What am I missing?
Thanks for any help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.