|
|
| Line 270: |
Line 270: |
| - python3 -V | | - python3 -V |
| - pip3 -V | | - pip3 -V |
| - pip3 install -r requirements.txt
| |
|
| |
| </pre>
| |
|
| |
| === docker image: centos ===
| |
| [https://hub.docker.com/_/centos/ library/centos - Docker Hub] {{access | date=2018-09-06}}
| |
|
| |
| * default python version: python v. 2.7.5
| |
|
| |
| <pre>
| |
| # install python3 on centos:centos7 image
| |
| image: centos:centos7
| |
|
| |
| before_script:
| |
| - yum install -y gcc zlib-devel wget
| |
| - yum install -y openssl-devel
| |
| - rpm -aq|grep openssl
| |
| - yum groupinstall -y 'Development Tools'
| |
| - python -V
| |
| # https://www.python.org/downloads/
| |
| - wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
| |
| - tar xzf Python-3.6.6.tgz
| |
| - cd Python-3.6.6
| |
| - ./configure
| |
| - make
| |
| - make install
| |
| - python3 -V
| |
| - cd ../
| |
| # https://github.com/pypa/pip/releases
| |
| - curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
| |
| - python3 get-pip.py
| |
| - pip3 -V
| |
| - pwd
| |
| - pip3 install -r requirements.txt | | - pip3 install -r requirements.txt |
|
| |
|