Multiple python version installs: Difference between revisions

Jump to navigation Jump to search
m
Line 239: Line 239:


before_script:
before_script:
     - yum install -y gcc zlib-devel wget openssl-devel
     - yum install -y gcc zlib-devel wget
    - yum install -y openssl-devel
    - rpm -aq|grep openssl
     - yum groupinstall -y 'Development Tools'
     - yum groupinstall -y 'Development Tools'
     - python -V
     - python -V
    - cd /usr/src
     # https://www.python.org/downloads/
     # https://www.python.org/downloads/
     - wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz  
     - wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz  
Line 248: Line 249:
     - cd Python-3.6.6   
     - cd Python-3.6.6   
     - ./configure
     - ./configure
     - make altinstall
     - make
     - ln -s /usr/src/Python-3.6.6/python python3 
     - make install
     - python3 -V
     - python3 -V
    - cd ../
     # https://github.com/pypa/pip/releases
     # https://github.com/pypa/pip/releases
     - cd /usr/bin
     - curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
    - wget --no-check-certificate https://github.com/pypa/pip/archive/10.0.1.tar.gz
     - python3 get-pip.py
    - tar xzf 10.0.1.tar.gz
    - cd pip-10.0.1
     - python3 setup.py install
     - pip3 -V
     - pip3 -V
    - pwd
    - pip3 install -r requirements.txt


</pre>
</pre>

Navigation menu