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 :: spigot start.bat 
Shell :: npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed. 
Shell :: ubuntu 20.04 install skype 
Shell :: git install on alpine 
Shell :: linux how to get fqdn 
Shell :: list file size as mb 
Shell :: install yarn global 
Shell :: beautifulsoup4 install 
Shell :: ubuntu 18 ffmpeg install 
Shell :: npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. 
Shell :: Failed to restart mongodb.service: Unit mongodb.service is masked. 
Shell :: kazam install ubuntu 
Shell :: install git winget 
Shell :: curl debian 10 
Shell :: gh-pages 
Shell :: .ps1 is not digitally signed. You cannot run this script on the current system. 
Shell :: uninstall anydesk ubuntu 
Shell :: git unable to update local ref 
Shell :: Failed at the node-sass@4.10.0 postinstall script. 
Shell :: adb port reverse 
Shell :: hello world powershell 
Shell :: necessary tools to install on kali linux WSL 
Shell :: check active number of ssh connections 
Shell :: Port 8080 was already in use. 
Shell :: Scan new disk in linux 
Shell :: brew list services 
Shell :: remove index.lock git 
Shell :: redis flushall docker 
Shell :: linux speed test 
Shell :: install material ui icons 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =