linux_wiki:python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_wiki:python [2018/01/16 10:22]
billdozor [Software Collections]
linux_wiki:python [2019/05/25 23:50]
Line 1: Line 1:
-====== Python ====== 
  
-**General Information** 
- 
-Administration of Python environments.  
- 
-**Checklist** 
-  * Distro(s): Enterprise Linux 6/7 
- 
----- 
- 
-===== Python Versions ===== 
- 
-^  OS  ^  System Package  ^  EPEL  ^  Software Collections  ^ 
-|  CentOS 6.x  |  2.6.6  |  3.4  |  2.7, 3.3, 3.4  | 
-|  CentOS 7.x  |  2.7  |  3.4  |  2.7, 3.3, 3.4, 3.5  | 
- 
-  * To avoid breaking system packages(ie yum uses python), let system packaged python versions stay maintained by the official repos. 
-  * Use EPEL/software collections along with something such as virtualenv to maintain development environments. 
- 
----- 
- 
-====== Python3 Install: EPEL ====== 
- 
-To install python 3.4 from the EPEL<code bash>yum install python34</code> 
- 
----- 
- 
-====== Python3 Install: Software Collections ====== 
- 
-Software Collections allow for environments such as newer Python versions to be installed via repos and not conflict with the default system version. 
- 
-[[linux_wiki:repos#software_collections|See Software Collections Instructions]] 
- 
----- 
- 
-===== Pip ===== 
- 
-Pip is a Python package management tool to install modules. 
- 
-==== Install Pip ==== 
-<code bash> 
-wget https://bootstrap.pypa.io/get-pip.py 
-python get-pip.py 
-</code> 
- 
-==== Pip Commands ==== 
-List installed python modules 
-<code bash> 
-pip list 
-</code> 
- 
-Show details about a Python module 
-<code bash> 
-pip show virtualenv 
-</code> 
- 
-Search for a Python module 
-<code bash> 
-pip search "query" 
-</code> 
- 
-Install a Python module 
-<code bash> 
-pip install virtualenv 
-</code> 
- 
-Upgrade a Python module 
-<code bash> 
-pip install --upgrade scipy 
-</code> 
- 
-Upgrade pip 
-<code bash> 
-pip install --upgrade pip 
-</code> 
- 
-Uninstall 
-<code bash> 
-pip uninstall virtualenv 
-</code> 
- 
----- 
  • linux_wiki/python.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)