Option 1 - Install pipx
sudo apt update
sudo apt install pipx
pipx ensurepath
pipx install [whatever]
# uploadserver를 예시로
# ensurepath 하고 난 후
uploadserver
# or
pipx run uploadserver
# or
~/.local/bin/uploadserver
# To make that easier in the future, ensure ~/.local/bin is in your $PATH
echo 'export PATH="$home/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# if you are using zsh just replace bash with zsh
Option 2 - Use a virtual environment
# 1. Create a virtual environment
python3 -m venv venv
# 2. Activate it
source venv/bin/activate
# 3. install the package
pip3 install <whatever>
pip3 install -r requirements.txt
#4. Run it while the venv is activated
python3 <whatever>
#5. deactivate
deactivate