pip

Installing scipy with pip

It is possible to install numpy with pip using pip install numpy. Is there a similar possibility with scipy? (Doing pip install scipy does not work) Update The package scipy is now available to be installed with pip, so the question is not relevant anymore. ...

PIP: Installing only the dependencies

I have a script that creates a virtualenv, installs distribute and pip in it and then optionally clones a git repo. Now I have the project I will be working on, installed. But its dependencies are not installed. How can I make pip install all the dependencies as if I have issued a pip install MyApp? EDIT: Appareantly my question is a d...

How do you use pip, virtual_env and Fabric to handle deployement?

What are your settings, your tricks, and above all, your work flow? These tools are great but they are still no best practices attached to their usage, so I don't know what is the most efficient way to use them. Do you use pip bundles or always download? Do you set up Apache/Cherokee/MySQL by hand or do you have a script for than. D...

pip requirements.txt with alternative index

I want to put all the requirements of a repoze Zope2 install in a pip requirements file. Most of the repoze packages don't seem to be on PyPi, but there's an alternative PyPi index for them here. But I can't figure out how to tell pip to use that index together with a requirements file. For single packages, it's easy pip install zopelib...

The problem with installing PIL using virtualenv or buildout.

When I install PIL using easy_install or buildout it installs in such way, that I must do 'import Image', not 'from PIL import Image'. However, if I do "apt-get install python-imaging" or use "pip -E test_pil install PIL", all work fine. Here are examples of how I trying to install PIL using virtualenv: # virtualenv --no-site-packages...

Sharing a fabfile across multiple projects

Fabric has become my deployment tool of choice both for deploying Django projects and for initially configuring Ubuntu slices. However, my current workflow with Fabric isn't very DRY, as I find myself: copying the fabfile.py from one Django project to another and modifying the fabfile.py as needed for each project (e.g., changing the w...

"UserWarning: Unbuilt egg for setuptools" - What does this actually mean?

Hiya. When I install things into a virtualenv using pip I often see the message "UserWarning: Unbuilt egg for setuptools". I always safely ignore it and go about my business and it doesn't seem to cause me any problems. But I've suddenly been smacked in the face with curiosity, and wondered if someone could explain what it means, exac...

Upgrading all packages with Pip

Is it possible to upgrade all python packages at one time with Pip? I saw someone made this a issue: http://bitbucket.org/ianb/pip/issue/4/add-upgrade-and-upgrade-all-commands ...

Including global package into a virtualenv that has been created with --no-site-packages

I'd usually prefer to create virtualenvs with --no-site-packages option for more isolation, and also because default python global packages includes quite a lot of packages, and usually most of them are not needed. However I'd still want to keep a few select packages in global, like PIL or psycopg2. Is there a good way to include them in...

pip: dealing with multiple Python versions?

Is there any way to make pip play well with multiple versions of Python? For example, I want to use pip to explicitly install things to either my site 2.5 installation or my site 2.6 installation. For example, with easy_install, I use easy_install-2.{5,6}. And, yes — I know about virtualenv, and no — it's not a solution to this particu...

pip: upgrade package without upgrading dependencies

I'm using pip and virtualenv for my python application. I would like to upgrade to a new version of the application without touching the dependencies. When I use pip install -U, it tries to upgrade all the packages, and even uninstalls and re-installs the same version of a dependency package when there isn't a new version available. I al...

PIP: how do I install a python package into a different directory?

I know the obvious answer is to use virtualenv and virtualenvwrapper, but for various reasons I can't/don't want to do that. So how do I modify this command: pip install package_name to make pip install the package somewhere other than the default site-packages? ...

Problems installing a package from PyPI: root files not installed

After installing the BitTorrent-bencode package, either via easy_install BitTorrent-bencode or pip install BitTorrent-bencode, or by downloading the tarball and installing that via easy_install $tarball, I discover that /usr/local/lib/python2.6/dist-packages/BitTorrent_bencode-5.0.8-py2.6.egg/ contains EGG-INFO/ and test/ directories. A...

Django apache-wsgi configuration problem

Hi, I am trying to get my Django project running on the production server. I setup the environment using pip, so it is identical to the development environment where everything is running fine. The only difference is that I don't use virtualenv on production, because this project is the only one that is going to run on production. Als...

Any productive way to install a bunch of packages

Hi, I had one machine with my commonly used python package installed. and i would like to install the same package on another machine or same machine with different python version. I would like to know whether pip or easy-install or some other method can let me install those packages in a batch. When i use perl, it has something like a b...

Why use pip over easy_install?

A tweet reads: Don't use easy_install, unless you like stabbing yourself in the face. Use pip. Why use pip over easy_install? Doesn't the fault lie with PyPI and package authors mostly? If an author uploads crap source tarball (eg: missing files, no setup.py) to PyPI, then both pip and easy_install will fail. Other than cosmet...

tokyo-python Install Issues

Hey guys, I'm trying to use Tokyo Cabinet in Python via the tokyo-python package. I've installed Cabinet, and the Cabinet development library. However, whenever I try to install tokyo-python with pip or easy_install, I get this ugliness. matt@amalgam:~/$ bin/pip install tokyo-python Downloading/unpacking tokyo-python Downloading tokyo-...

Django, PIP, and Virtualenv

Hi, Got this django project that I assume would run on virtualenv. I installed virtualenv through pip install and created the env but when I try to feed the pip requirements file, I got this: Directory 'tagging' is not installable. File 'setup.py' not found. Storing complete log in /Users/XXXX/.pip/pip.log Here's the entry on the log...

pip mingw compile

I configured mingw and distutils so now I can compile extensions using this command: setup.py install MinGW gcc complier will be used and package will be installed. For that I installed MinGW and created distutils.cfg file with following content: [build] compiler = mingw32 It's cool but now I'd like to use all pip benefits. So is t...

virtualenv, sys.path and site-packages

i am setting up a virtualenv for django deployment. i want an isolated env without access to the global site-packages. i used the option --no-site-packages, then installed a local pip instance for that env. after using pip and a requirements.txt file i noticed that most packages were installed in a "build" folder that is not in sys.pa...