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.

Support bootstrap installations with pip install --user

See original GitHub issue

User story: I am an experienced GNU/Linux developer. I only install non-distro packages with installers I trust, so that I reduce the risk of running malicious code. For example, I use pip install --user and to install non-Debian Python packages from PyPI.

Problem: Thus, I don’t want to run curl https://raw.githubusercontent.com... | python3 to install pipx.

Suggested solution 1:

A PyPI package called pipx-bootstrap that functions as follows:

pip install --user pipx-bootstrap
pipx-bootstrap # installs pipx-app from PyPI into correct location
pip uninstall pipx-bootstrap
pipx upgrade pipx-app # should work

Suggested solution 2:

Instructions on how to use pip to install pipx-app into the correct location, so that pipx upgrade pipx-app works thereafter.

Suggested solution 3:

Upstream packaging 😄

apt install python-pipx # installs system version (you can stop here if you only trust distro for system tools)
pipx install pipx-app # install local user version
pipx upgrade pipx-app # upgrades local user version

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
lofidevopscommented, Jan 2, 2019

FYI pipx-app is currently available in Debian testing as “python-pipx” https://packages.debian.org/source/buster/python-pipx 🎉

1reaction
cs01commented, Jan 28, 2019

A new package called pipx-bootstrap has been published to PyPI and installation instructions in pipx have been updated.

https://github.com/cs01/pipx-bootstrap https://pypi.org/project/pipx-bootstrap/

Read more comments on GitHub >

github_iconTop Results From Across the Web

PEP 439 – Inclusion of implicit pip bootstrap in Python ...
This PEP proposes the inclusion of a pip bootstrap executable in the Python installation to simplify the use of 3rd-party modules by Python ......
Read more >
Python bootstrapping the pip installer - Tutorialspoint
The ensurepip module provides support for bootstrapping pip in existing installation of Python. Normally user doesn't need to use it ...
Read more >
How to bootstrap installation of Python modules on Amazon ...
The most straightforward way would be to create a bash script containing your installation commands, copy it to S3, and set a bootstrap...
Read more >
Installation - pip documentation v22.3.1
Download the script, from https://bootstrap.pypa.io/get-pip.py. Open a terminal/command prompt, cd to the folder containing the get-pip.py file ...
Read more >
How to Install Pip on Windows - ActiveState
Pip is the standard package manager for Python. It enables the installation and management of third party packages that provide features and ...
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