Difference between revisions of "Python deployments"
Jump to navigation
Jump to search
(basic pip examples) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Hynek Schlawack | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | Hynek Schlawack | ||
* [https://hynek.me/talks/python-deployments/ Notes] | * [https://hynek.me/talks/python-deployments/ Notes] | ||
* [https://www.youtube.com/watch?v=RvbDCzroavY Video] | * [https://www.youtube.com/watch?v=RvbDCzroavY Video] | ||
== Python Packaging == | == Python Packaging == | ||
− | + | Christoph Haas discusses virtualenv, easy_install, pip, apt/yum | |
− | + | https://workaround.org/easy-install-debian | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Stackoverflow says [http://stackoverflow.com/questions/3220404/why-use-pip-over-easy-install/ use pip over easy_install], but things have been changing over the past few years, so the future/best practice may require a bit more digging. | |
− | |||
− | |||
− | + | == Basic PIP == | |
+ | * Installing a package is as simple as <code>sudo pip install foo</code> | ||
+ | * Upgrades are <code>sudo pip install --upgrade foo</code> | ||
+ | * <code>sudo pip uninstall foo</code> if you want to remove foo | ||
[[Category:Python]] | [[Category:Python]] |
Revision as of 15:37, 27 July 2016
Hynek Schlawack
Python Packaging[edit | edit source]
Christoph Haas discusses virtualenv, easy_install, pip, apt/yum https://workaround.org/easy-install-debian
Stackoverflow says use pip over easy_install, but things have been changing over the past few years, so the future/best practice may require a bit more digging.
Basic PIP[edit | edit source]
- Installing a package is as simple as
sudo pip install foo
- Upgrades are
sudo pip install --upgrade foo
sudo pip uninstall foo
if you want to remove foo