Difference between revisions of "Python deployments"
Jump to navigation
Jump to search
(basic pip examples) |
(pip is a pain in the penis) |
||
Line 10: | Line 10: | ||
== Basic PIP == | == Basic PIP == | ||
+ | pip is a fast-moving target and the packaged versions in Debian or Ubuntu are old and buggy. So, you should get pip from upstream. | ||
+ | |||
* Installing a package is as simple as <code>sudo pip install foo</code> | * Installing a package is as simple as <code>sudo pip install foo</code> | ||
* Upgrades are <code>sudo pip install --upgrade foo</code> | * Upgrades are <code>sudo pip install --upgrade foo</code> | ||
− | * <code>sudo pip uninstall foo</code> if you want to remove foo | + | * <code>sudo pip uninstall foo</code> if you want to remove foo<ref>but you might have to resort to brute force like <code>sudo rm -rf /usr/local/lib/python2.7/dist-packages/dopy*</code> since old pip is buggy. Or try without sudo. Or just upgrade pip</ref> |
+ | |||
+ | {{References}} | ||
[[Category:Python]] | [[Category:Python]] |
Revision as of 12:25, 28 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]
pip is a fast-moving target and the packaged versions in Debian or Ubuntu are old and buggy. So, you should get pip from upstream.
- 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[1]
References[edit source]
- ↑ but you might have to resort to brute force like
sudo rm -rf /usr/local/lib/python2.7/dist-packages/dopy*
since old pip is buggy. Or try without sudo. Or just upgrade pip