Created
October 8, 2018 13:20
-
-
Save bashkirtsevich/7c6b204df3177964ce469bba77ed1f7b to your computer and use it in GitHub Desktop.
Install python centos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 hostname -I | |
| 2 exit | |
| 3 yum -y update | |
| 4 curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | |
| 5 yum -y install git | |
| 6 curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash | |
| 7 exit | |
| 8 pyenv | |
| 9 echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile | |
| 10 pyenv | |
| 11 pyenv init | |
| 12 exit | |
| 13 pyenv | |
| 14 pyenv versions | |
| 15 pyenv version | |
| 16 pyenv install 3.7 | |
| 17 pyenv install --list | |
| 18 pyenv install 3.7.0 | |
| 19 ls -la | |
| 20 yum -y install gcc | |
| 21 yum -y install readline-devel sqlite3-devel libbz2-devel zlib-devel libopenssl-devel gcc | |
| 22 pyenv install 3.7.0 | |
| 23 pyenv install 3.6.3 | |
| 24 yum -y install build-essential python-dev python-setuptools python-pip python-smbus ; yum -y install libncursesw5-dev libgdbm-dev libc6-dev ; yum -y install zlib1g-dev libsqlite3-dev tk-dev ; yum -y install libssl-dev openssl ; yum -y install libffi-dev | |
| 25 yum install libffi-devel | |
| 26 pyenv install 3.7.0 | |
| 27 yum install libopenssl-devel | |
| 28 yum install -y openssl-devel | |
| 29 pyenv install 3.7.0 | |
| 30 history | |
| 31 yum -y install python3-virtualenv | |
| 32 yum -y install virtualenv | |
| 33 cd cd $(pyenv root) | |
| 34 cd $(pyenv root) | |
| 35 ls | |
| 36 python -V | |
| 37 cd - | |
| 38 pyenv versions | |
| 39 pyenv | |
| 40 ls -la | |
| 41 cd .pyenv/ | |
| 42 ls | |
| 43 cd .. | |
| 44 pyenv local | |
| 45 pyenv local 3.7.0 | |
| 46 python -V | |
| 47 source | |
| 48 pip | |
| 49 pip -v | |
| 50 which pip | |
| 51 pip -V | |
| 52 pip install virtualenv | |
| 53 virtualenv | |
| 54 virtualenv -p python hleb | |
| 55 source hleb/bin/activate | |
| 56 pip freeze | |
| 57 pip -V | |
| 58 python -V | |
| 59 history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment