Multiple python version installs: Difference between revisions

m Text replacement - ": Image:Owl icon.jpg " to "{{Tips}} "
Tags: Mobile edit Mobile web edit
Tag: wikieditor
 
(5 intermediate revisions by the same user not shown)
Line 227: Line 227:
== Python version on docker images ==
== Python version on docker images ==
=== comparison of docker images ===
=== comparison of docker images ===
 
* [https://hub.docker.com/r/continuumio/anaconda3 continuumio/anaconda3]: Python 3.12.7 {{access | date=2025-01-22}}
* condaforge/miniforge3:latest [https://hub.docker.com/r/condaforge/miniforge3]: python 3.9.10
* continuumio/anaconda3:2022.10: Python 3.9.13
* condaforge/miniforge3:4.9.2-5 [https://hub.docker.com/layers/condaforge/miniforge3/4.9.2-5/images/sha256-dd9baf33f5d1b73fe98b706843ed1db4e242053f582dbec4a25ce8c3569cef5a?context=explore]: python 3.8.6
* continuumio/anaconda3:2022.05: Python 3.9.12
* continuumio/anaconda3: python 3.9.7
* continuumio/anaconda3:2020.02: Python 3.7.6
* continuumio/anaconda3:2019.10 [https://hub.docker.com/layers/continuumio/anaconda3/2019.10/images/sha256-9068d4877089bf01ab633e7b26571683a90ba8883b5e47bd12d1e3eae27efea3] -> python 3.7.4
* continuumio/anaconda3:2019.10: Python 3.7.4
 
* [https://hub.docker.com/r/condaforge/miniforge3 condaforge/miniforge3:latest]: Python 3.9.10 {{access | date=2022-08-22}}
<div class="table-responsive" style="width:100%;    min-height: .01%;    overflow-x: auto;">
* condaforge/miniforge3:4.9.2-5: Python 3.8.6
<table border="1" class="wikitable">
  <tr>
    <th>Docker image:tag</th>
    <th>Estimated time of python v. 3.x installation <br />(minute)</th>
  </tr>
  <tr>
    <td>[https://hub.docker.com/_/python/ python:3.6]</td>
    <td>less than 1</td>
  </tr>
  <tr>
    <td>[https://hub.docker.com/_/centos/ centos:centos7]</td>
    <td>4</td>
  </tr>
  <tr>
    <td>[https://hub.docker.com/_/ubuntu/ ubuntu:18.04]</td>
    <td>1</td>
  </tr>
</table>
</div>


=== docker image: python ===
=== docker image: python ===
Line 290: Line 271:
     - 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


Line 328: Line 276:


== References ==
== References ==
References


<references />
<references />


Related articles
== Related articles ==
* [https://github.com/pypa/pipenv pypa/pipenv: Python Development Workflow for Humans.]
* [https://github.com/pypa/pipenv pypa/pipenv: Python Development Workflow for Humans.]
* [https://hub.docker.com/_/python/ library/python - Docker Hub]
* [https://hub.docker.com/_/python/ library/python - Docker Hub]
* [https://www.anaconda.com/download/#macos Anaconda]: [https://docs.anaconda.com/anaconda/navigator/tutorials/use-multiple-python-versions/ Using multiple versions of Python with Navigator — Anaconda 2.0 documentation]
* [https://www.anaconda.com/download/#macos Anaconda]: [https://docs.anaconda.com/anaconda/navigator/tutorials/use-multiple-python-versions/ Using multiple versions of Python with Navigator — Anaconda 2.0 documentation]


[[Category:Python]] [[Category:Programming]] [[Category:Docker]]
[[Category: Python]]  
[[Category: Programming]]  
[[Category: Docker]]
[[Category: Linux]]