Questions tagged [pip]

Use for questions about the Python package installer but not about Picture-in-Picture

pip is the package installer for Python. You can use pip to install packages from the Python Package Index and other indexes. The name is a recursive acronym for "Pip Installs Packages".

It replaces easy_install and is an improved Python package installer. The differences between easy_install and pip can be found in a discussion on the Python Packaging User Guide.

Please do not use the tag for Picture-in-Picture, use instead.

23287 questions
11
votes
1 answer

pip install with shell completion

I am writing a command line tool in python and using pip to distribute it. I have written some scripts (one for bash and one for zsh) to allow the tool to have tab completion. Is there a way to get pip to install these scripts when someone does a…
Nick Humrich
  • 14,905
  • 8
  • 62
  • 85
11
votes
6 answers

pip install broken (pkg_resources.find_distribution returns empty list in req.py-prepare_files)

At some point my pip installation broke (I suspect when upgrading to Ubuntu 14.04) and I haven't been able to unbreak it by completely removing it and reinstalling (via synaptic package manager). It doesn't occur for all packages but for a few…
Tom Close
  • 544
  • 6
  • 12
11
votes
4 answers

Portable python - can't install pip

I'm trying to get pip on my USB drive. Following the instructions on this web sit, I downloaded get-pip.py and run python get-pip.py (python is in the environment path). Unfortunately the script through an error. I have uploaded the log file to…
elyashiv
  • 3,623
  • 2
  • 29
  • 52
11
votes
2 answers

pip: Any workaround to avoid --allow-external?

Recent versions of pip installer hasn’t installed packages that do not upload their package files to PyPI unless the user explicitly provide --allow-external option (related answer). I want to distribute my package that depend on such library like…
minhee
  • 5,688
  • 5
  • 43
  • 81
11
votes
1 answer

xhtml2pdf ImportError - Django

I installed xhtml2pdf using pip for use with Django. I am getting the following ImportError: Reportlab Toolkit Version 2.2 or higher needed But I have reportlab 3.0 >>> import reportlab >>> print reportlab.Version …
hanleyhansen
  • 6,304
  • 8
  • 37
  • 73
11
votes
4 answers

Python easy_install in a virtualenv gives setuptools error

There are a number of other StackOverflow questions similar to this one, but in each case, the platform was different or the error message was different or the solution had no effect or was outdated. I am trying to set up a Python 2.7.6 virtualenv…
Graeme Perrow
  • 56,086
  • 21
  • 82
  • 121
11
votes
3 answers

install virtualenv using pip or pip3?

I used brew to install both python2 and python3 brew install python brew install python3 I noticed that there are pip and pip3 so which pip should I use to create virtualenv pip install virtualenv or pip3 install virtualenv
andres
  • 131
  • 1
  • 1
  • 5
11
votes
8 answers

"enchant C library not found" while installing pyenchant using pip on OSX

I typed in pip install pyenchant into my shell, but it raised two Traceback errors: 1: Traceback (most recent call last): File "", line 16, in File…
A.J. Uppal
  • 19,117
  • 6
  • 45
  • 76
11
votes
4 answers

Can a Python package depend on a specific version control revision of another Python package?

Some useful Python packages are broken on pypi, and the only acceptable version is a particular revision in a revision control system. Can that be expressed in setup.py e.g requires = 'svn://example.org/useful.package/trunk@1234' ?
joeforker
  • 40,459
  • 37
  • 151
  • 246
11
votes
5 answers

Install paramiko on Windows

OK. I read installing paramiko on Windows. All mentioned methods simply do not work. Authors have different environments with different components/libraries installed. Or may be they don't test their solutions before posting an answer :) I removed…
tmporaries
  • 1,523
  • 8
  • 25
  • 39
11
votes
2 answers

Issue with easy_install-2.7

After installing easy_install and trying to use it to then install a python package it fails. [root@server]# easy_install-2.7 pip Searching for pip Reading http://pypi.python.org/simple/pip/ Download error on http://pypi.python.org/simple/pip/:…
felix001
  • 15,341
  • 32
  • 94
  • 121
11
votes
4 answers

Installing numpy on Amazon EC2

I am having trouble installing numpy on an Amazon EC2 server. I have tried using easy_install, pip, pip inside a virtual env, pip inside another virtual env using python 2.7... Every time I try, it fails with the error: gcc: internal compiler…
Brian Schlenker
  • 4,966
  • 6
  • 31
  • 44
11
votes
4 answers

Error when installing Scrapy on Ubuntu 13.04

When I try to install Scrapy on ubuntu 13.04 with the command sudo easy_install -U Scrapy, I get the following error: Searching for Scrapy Reading pypi.python.org/simple/Scrapy/ Best match: Scrapy 0.16.5 Processing Scrapy-0.16.5-py2.7.egg Scrapy…
Burak Karacay
  • 113
  • 1
  • 4
11
votes
3 answers

How to use pip install python packages locally like npm does

Say I have a project named Foo, and and want to install requests package locally for this project. What I am expecting is some structure similar to this: Foo/ |-main.py |-requirements.txt |-README.md |-python_modules/ |-|-requests ... And I can do…
mingyc
  • 526
  • 5
  • 13
11
votes
2 answers

Which is the most pythonic: installing python modules via a package manager ( macports, apt) or via pip/easy_install/setuptools

Usually I tend to install things via the package manager, for unixy stuff. However, when I programmed a lot of perl, I would use CPAN, newer versions and all that. In general, I used to install system stuff via package manager, and language stuff…
chiggsy
  • 8,153
  • 5
  • 33
  • 43
1 2 3
99
100