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


4.33
9
Rchl 110 points

                                    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

4.33 (9 Votes)
0
5
4
Kyle Carlson 110 points

                                    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

5 (4 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
pyenv linux install pyenv ubunyu installing pyenv-virtualenv ubuntu pyenv for linux how to install pyenv on linux pyenv setup ubuntu ubuntu pyenv setup ubuntu pyenv instllation python 3.9 pyenv ubuntu how install pyenv ubuntu pyenv install pypy3 ubuntu how to install python on ubuntu pyenv install pyenv ubtunt download pyenv virtualenv ubuntu pyenv-virtualenv ubuntu linux pyenv install pyenv ubuntu 18 pyenv install ubuntu 18.,04 pyenv on ubuntu ubuntu install pyenv-virtualenv pyenv install on ubuntu pyenv virtualenv install ubuntu how to install pyenv ubuntu apt-get install pyenv pyenv install ubuntu 18.04 isntall pyenv ubuntu pyenv python on ubuntu ubuntu where is pyenv install pyenv ubuntu apt get installing pyenv ubuntu ubuntu setup pyenv compile python version pyenv for ubuntu 202 pyenv for ubuntu pyenv install ubunut pyenv start python restart pyenv pyenv all users run python venv ubuntu pyenv install latest pythin command to create a virtual environment in python ubuntu how to make python environment in ubuntu pyenv ubuntu install pyenv install python brew instll pyenv creating a virtual environment for python on ubuntu 18.04 sudo apt-get install pyenv python what is users/evan/.pyenv/ install pyenv on ubuntu pyenv available python versions check python version in "pyenv" pyenv requirements update pyenv pyenv build debendencies ubuntu python version manager pyenv-win override system python pyenv pyenv installer pyenv and dependencies check pyenv version pyenv select version install pyenv-virtualenv python shims pyenv install ubuntu pyenv install where is pyenv on my ubuntu install pyenv linux install pyenv install pyenv in ubuntu how to install pyenv on ubuntu apt install pyenv pyenv ubuntu 18.04 ubuntu install pyenv installation pyenv ubuntu install pyenv ubuntu 18.04 pyenv ubuntu python install pyenv ubuntu install pyenv in ubuntu using focal fossa install pyenv in ubuntu focal flora pyenv ubuntu pyenv install ubuntu ubuntu pyenv
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source