Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to install python on ubuntu pyenv

# You need these dependencies for pyenv to work.
sudo apt-get update; 
sudo apt-get install make build-essential libssl-dev zlib1g-dev 
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm 
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
# Runs a script that installs pyenv
curl https://pyenv.run | bash
# Exports the path through these lines into .bashrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc 
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc 
echo 'eval "$(pyenv init --path)"' >> ~/.bashrc 
echo 'eval "$(pyenv init -)"' >> ~/.bashrc 
# Make the pyenv available without needing to close terminal
exec $SHELL
pyenv update
which pyenv
# You're ready to run! 
pyenv install --list
pyenv install 2.7.18
pyenv install 3.7.0
pyenv help global
pyenv global 2.7.15 3.7.0

Comment

pyenv install ubuntu

root@ubuntu:~# apt install -y make build-essential libssl-dev zlib1g-dev 
> libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev
> libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl
> git
Comment

PREVIOUS NEXT
Code Example
Shell :: remove homebrew tap 
Shell :: Remove a file from a Git repository without deleting it from the local 
Shell :: mate on ubuntu 20.04 
Shell :: what is gist in github 
Shell :: raspberry pi ubuntu server raspi-config 
Shell :: find exclude directories 
Shell :: rename a directory in git 
Shell :: how to download virtualbox on kali linux 
Shell :: update time in linux 
Shell :: centos monitor network traffic 
Shell :: ubuntu 20.04 ifconfig public ip address 
Shell :: check ubuntu uptime 
Shell :: how to add image in readme 
Shell :: how to resolve conflict in git 
Shell :: how to get all branches from gitlab repository 
Shell :: teams ubuntu 
Shell :: cmd run exe as service 
Shell :: WSL with VPN 
Shell :: ssh copy to clipboard 
Shell :: uname 
Shell :: ubuntu gitlab 
Shell :: wsl export 
Shell :: git lfs all files in folder 
Shell :: git pull new branch from remote 
Shell :: expo cli 
Shell :: bash: telnet: commande inconnue. 
Shell :: solana connect mainnet 
Shell :: vpn server setup 
Shell :: files 644 folders 755 
Shell :: install hg linux 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =