- Use Cygwin setup to install Python for Cygwin.
- Install easy_install in your Cygwin: download and run ez_setup.py in Cygwin.
- Install pip by using easy_install: eazy_install pip.
- pip install virtualenv
- pip install virtualenvwrapper
- add the following lines into your ~/.bashrc
- export WORKON_HOME=/cygdrive/c/labs/virtualenvs
source /usr/bin/virtualenvwrapper_bashrc
Showing posts with label pip. Show all posts
Showing posts with label pip. Show all posts
Sunday, April 4, 2010
Using pip, virtualenv, and virtualenvwrapper in Cygwin
I have been using pip, virtualenv, and virtualenvwrapper in Cygwin for long time, it is pretty handy to isolate my development environment for each python projects I am working on. But I still need to think about what need to be done to setup all the pip, virtualenv, and virtualenvwrapper on Cygwin. To save my time and help anybody would like to setup the stuff on Cygwin, I recorded the process as following:
Labels:
cygwin,
pip,
python,
virtualenv,
virtualenvwrapper
Wednesday, December 9, 2009
pip install python packages makes it easy
pip is easy_install replacement, and it is easy to use. Here are some features I recently used:
- To install something from Python Package Index, for example, Django 1.1, you just issue: pip install django, it will download it and install it.
- To see what Python Packages were installed by pip, you can use command: pip freeze, of course, you can redirect the output to a file and pass around.
- To uninstall a Python Package, for example, Django 1.1 installed in step 1, the command is: pip uninstall django.
- To install some Python Package you may run into error: No distributions at all found for xxxxx, you can supply the package file url to the pip install command, for example, if you want to install Django 0.96.5, here is the command: pip install http://www.djangoproject.com/download/0.96.5/tarball/, this one is pretty cool, if you can find the package gz file, then you can install it by using pip.
Subscribe to:
Posts (Atom)