Ubuntu with git
Error messages pop up when I tried to install git.
And solution is down below.
ml@ubuntu:~$ sudo apt install git
[sudo] password for ml:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Ubuntu with pip and python3
sudo apt update
sudo apt install python3-pip
Ubuntu with pyenv
Official website: https://github.com/pyenv/pyenv
Execute the command one by one!
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
cd ~/.pyenv && src/configure && make -C src
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init --path)"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
echo 'if command -v pyenv >/dev/null; then eval "$(pyenv init -)"; fi' >> ~/.bashrc
# reboot pc
Verification: