Difference between revisions of "Advanced Python Topics and Links"

From CDOT Wiki
Jump to: navigation, search
(Python Virtual Environments)
Line 7: Line 7:
 
= Python Packaging =
 
= Python Packaging =
 
* http://python-packaging-user-guide.readthedocs.io/
 
* http://python-packaging-user-guide.readthedocs.io/
 +
= Install latest Python 3 from source =
 +
== On CentOS 7 system ==
 +
* yum -y groupinstall development
 +
* yum -y install zlib-devel
 +
* wget https://www.python.org/ftp/python/x.x.x/Python-3.x.x.tar.xz (check out the version # for the latest version)
 +
* tar xJf Python-3.x.x.tar.xz
 +
* ./configure
 +
* make
 +
* make install
 +
* python3 -v

Revision as of 11:07, 27 June 2018

Python Virtual Environments

  • virtualenv (for version 2 and 3)
  • venv (version 3 only)
  • read PEP 405 on why venv is better.

Python Packaging

Install latest Python 3 from source

On CentOS 7 system