mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-08 22:21:12 +00:00
New Posts
This commit is contained in:
parent
aa7a3fd324
commit
f3d1c25d3b
2 changed files with 166 additions and 0 deletions
42
content/blog/managepythonapps.md
Normal file
42
content/blog/managepythonapps.md
Normal file
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
title: "Manage Python Applications"
|
||||
date: 2020-10-11T19:21:10-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
I've recently discovered an application called [`pipx`](https://pipxproject.github.io/pipx/) which allows one to install and run Python applications in isolated environments. I think of it as a package similar to `apt`, but keeps the packages nice and isolated from one another.
|
||||
|
||||
To Install:
|
||||
|
||||
```bash
|
||||
sudo apt install python3-venv pipx
|
||||
pipx ensurepath
|
||||
```
|
||||
|
||||
By default, it will create the virtualenvs in `~/.local/pipx` and drop executables in `~/.local/bin`.
|
||||
|
||||
Install `diceware` using `pipx`:
|
||||
|
||||
```bash
|
||||
pipx install diceware
|
||||
```
|
||||
|
||||
List the virtual environments maintained by `pipx`:
|
||||
|
||||
```bash
|
||||
pipx list
|
||||
```
|
||||
|
||||
Upgrade a package:
|
||||
|
||||
```bash
|
||||
pipx upgrade diceware
|
||||
```
|
||||
|
||||
Add additional dependencies into a package's virtual environment:
|
||||
|
||||
```bash
|
||||
pipx inject package dependency
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue