Basic PIP install
pip install somepackage
Basic PIP uninstall
pip uninstall somepackage
Requirements file
# cat requirements.txt
MyApp
Framework==0.0.1
Library>=0.2
Installing using a requirements file
pip install -r requirements.pip
PIP Freezing requirements
pip freeze # lists all packages and the specific version installed. Useful for migrating
PIP install into virtualenv env
pip install -E ./env
pip install -E ./env -r requirements.pip # using a requirements file
Basic script for creating a virtualenv and installing requirements
virtualenv --distribute --no-site-packages ve
source ./ve/bin/activate
pip install -E ./ve -r requirements.pip
pip install -E ./ve -r requirements-test.pip
http://heisel.org/blog/2009/11/21/django-hudson/
http://pip.openplans.org/#freezing-requirements
Showing posts with label package. Show all posts
Showing posts with label package. Show all posts
Saturday, June 26, 2010
Saturday, January 02, 2010
Python Virtual Env
Download and install via apt-get, ports, easy_install, etc.
Locate the install directory (usually site-packages) and find the virtualenv.py script.
Alternatively, the package manager may have installed a virtualenv script into your PATH.
I will use ENV to refer to /path/to/python/virtual/env
I will use virtualenv.py to refer to /path/to/script/virtualenv.py
Create a new Virtual Environment
python virtualenv.py ENV
(optional) Activate (set PATH and PYTHONPATH) for new Virtual ENV
source ENV/bin/activate
Location of Virtual Env python binary
ENV/bin/python
Location of Virtual ENV python site-packages dir
ENV/lib/python2.x/site-packages/
Location of Virtual ENV python easy_install script
ENV/bin/easy_install
http://pypi.python.org/pypi/virtualenv
Locate the install directory (usually site-packages) and find the virtualenv.py script.
Alternatively, the package manager may have installed a virtualenv script into your PATH.
I will use ENV to refer to /path/to/python/virtual/env
I will use virtualenv.py to refer to /path/to/script/virtualenv.py
Create a new Virtual Environment
python virtualenv.py ENV
(optional) Activate (set PATH and PYTHONPATH) for new Virtual ENV
source ENV/bin/activate
Location of Virtual Env python binary
ENV/bin/python
Location of Virtual ENV python site-packages dir
ENV/lib/python2.x/site-packages/
Location of Virtual ENV python easy_install script
ENV/bin/easy_install
http://pypi.python.org/pypi/virtualenv
Wednesday, October 28, 2009
MacPorts Usage
Update MacPorts itself
sudo port selfupdate
sudo port -d selfupdate # debug
Updates the port tree with new versions definitions
sudo port sync
List available ports
sudo port list
Search ports
port search [keyword]
Lookup package info (desc, maintainer, etc)
port info [package]
Find package dependencies
port deps [package]
Install package
sudo port install [package]
sudo port -v install [package] #verbose
Clean out build files and tarballs
port clean --all [pakcage]
Uninstall a package
sudo port uninstall [package]
Show port contents
port contents [package]
List installed packages
port installed
List outdated ports
port outdated
Upgrade specific packages
port upgrade [package]
port upgrade outdated #updates all outdated packages
http://guide.macports.org/chunked/using.html
sudo port selfupdate
sudo port -d selfupdate # debug
Updates the port tree with new versions definitions
sudo port sync
List available ports
sudo port list
Search ports
port search [keyword]
Lookup package info (desc, maintainer, etc)
port info [package]
Find package dependencies
port deps [package]
Install package
sudo port install [package]
sudo port -v install [package] #verbose
Clean out build files and tarballs
port clean --all [pakcage]
Uninstall a package
sudo port uninstall [package]
Show port contents
port contents [package]
List installed packages
port installed
List outdated ports
port outdated
Upgrade specific packages
port upgrade [package]
port upgrade outdated #updates all outdated packages
http://guide.macports.org/chunked/using.html
Subscribe to:
Posts (Atom)