coco_apm_exportdtconfig/updatepython.sh

30 lines
646 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# !/bin/bash
# Step 1. Install pyenv
sudo zypper refresh
sudo zypper update -y
sudo zypper install -y python38
#sudo zypper install -y readline-devel sqlite3-devel libbz2-devel zlib-devel libopenssl-devel libffi-devel gcc make
#cd /tmp
#wget https://www.python.org/ftp/python/3.8.7/Python-3.8.7.tgz
#tar -xvf Python-3.8.7.tgz
#cd Python-3.8.7/
#./configure
#make
#make install
#echo export PATH=”$PATH/root/Python-3.8.7/”’>> ~/.bashrc
#source ~/.bashrc
python3 --version
python38 --version
# Step 3. Install the desired Python version
#pyenv install 3.7.4
# Step 4. Install virtualenv
#sudo zypper install -y python3-virtualenv