Skip to content

Instantly share code, notes, and snippets.

@OndrejValenta
Last active July 1, 2023 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OndrejValenta/0d3427c63a1c39eaf372a3267ce0be54 to your computer and use it in GitHub Desktop.
Save OndrejValenta/0d3427c63a1c39eaf372a3267ce0be54 to your computer and use it in GitHub Desktop.
Zsh + Git + PipEnv on Rocky Linux KDE

Installation steps for Git + PipEnv on Rocky Linux KDE

Prepare environment

sudo dnf -y update
sudo yum install -y epel-release
sudo dnf install -y wget curl nano mc git
sudo dnf groupinstall -y "Development Tools"

Install Zsh and Oh-my-Zsh

sudo dnf install -y zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

# Close terminal

Install Python3 + Pip + PipEnv

sudo dnf install -y python3 python-pip

pip install --user pipenv

# While being on home directory
.pyenv/bin/pyenv init -

Update/Check $HOME/.zshrc (or .bashrc if you use it)

# Should contain something similar to this

# For pyenv
export PATH="$HOME/.pyenv/bin/:$PATH"
export PYENV_ROOT="$HOME/.pyenv"
eval "$(pyenv virtualenv-init -)"

# For pipenv to be found and working
export PYTHON_BIN_PATH="$(python3 -m site --user-base)/bin"
export PATH="$PATH:$PYTHON_BIN_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment