Questions tagged [pip]

PIP (Package Installer for Python) is a package manager for the Python language.

Filter by
Sorted by
Tagged with
94 votes
3 answers
72k views

How do I list the files associated with a Python package installed using pip or easy_install?

I've installed a Python package using pip, which is a replacement for easy_install. How do I get a list of which installed files are associated with this package? Basically, I'm looking for the ...
Lorin Hochstein's user avatar
13 votes
8 answers
52k views

PIP not installing to virtualenv directory

I am attempting to install django to a virtualenv that already exists. Following the instructions listed on the pip-install website here, I ran the following from SSH. name@server:~$ . myenv.env/bin/...
Leah Sapan's user avatar
11 votes
4 answers
18k views

How to install python3.4-pip in FreeBSD 10.1?

I searched in the ports and can't find a pip installation package other than the pip for python27 py27-pip-6.1.1. Which way is the best for installing pip for python 3.x in FreeBSD 10.1? Or is it ...
Mr.Gosh's user avatar
  • 323
10 votes
2 answers
168k views

How Uninstall pip and python [closed]

I wanted to install version 3 of python and pip but instead issued sudo apt-get install python-pip python-dev how do I uninstall python and pip, I tried sudo apt-get uninstall but did not work, what ...
user402175's user avatar
8 votes
3 answers
39k views

CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team

I'm trying to run docker-compose (which was installed via pip), yet running into following error: # pip install --quiet docker-compose # docker-compose ps /usr/local/lib/python2.7/dist-packages/...
alexus's user avatar
  • 13.4k
8 votes
1 answer
12k views

Ansible - pip3 install fails

I am trying to install Ansible on CentOS 7, and have Ansible configured to use Python 3. I've both Python2 and Python3 installed. [root@ansible1 ~]# python --version Python 2.7.5 [root@ansible1 ~]# ...
JeremyCanfield's user avatar
7 votes
2 answers
9k views

pip install seems to be ignoring dependency links

I have a Python application that depends on several packages. One of those packages, unfortunately, isn't in PyPi so I have to install it directly from the git repo. I've been trying to add it into ...
Dave Holland's user avatar
  • 1,908
7 votes
2 answers
4k views

'pip install carbon' looks like it works, but pip disagrees afterward

I'm trying to use pip to install the package carbon, a package related to statistics collection. When I run pip install carbon, it looks like everything works. However, pip is unconvinced that the ...
user avatar
7 votes
1 answer
2k views

Build Docker image with cache on build server?

We've got a Jenkins CI server that fetches our code from Git, builds it, makes a Docker image, and then ships it off to some production servers. Our project is primarily written in Python, so "...
Tim's user avatar
  • 71
6 votes
3 answers
12k views

How To Tell Puppet To Only Install Using Pip If A File Doesn't Exist

I am using Puppet to install some Python packages using pip. I'm using Puppet 2.7, so my package declarations look something like this: package { "carbon": require => Class["graphite::prereqs:...
Tom Purl's user avatar
  • 549
5 votes
2 answers
10k views

Ubuntu 20.04 minimal: "Unable to locate package python-pip"

Launching some small VMs in GCP and thought I would give Ubuntu 20.04 LTS minimal a try. After doing an "apt update; apt upgrade" I'm able to install packages like Apache, but having zero luck with ...
John Heyer's user avatar
5 votes
4 answers
20k views

Ansible: "You need to install 'jmespath' prior to running json_query filter", but it is installed

I am using Ansible on top of Python3 and Enterprise Linux 8 (Rocky Linux 8). When I try to use json_query, I am getting the following error: fatal: [ansible]: FAILED! => {"msg": "You ...
norinori's user avatar
  • 121
4 votes
1 answer
11k views

How do I tell if a Python pip install is working correctly or hanging?

I am trying to install the python pandas package in a virtualenv using pip. On my development machine it installed correctly, but now I am trying on the server, it gets so far then it seems to get ...
wobbily_col's user avatar
4 votes
1 answer
2k views

Installing certbot - error - "nothing provides pyparsing"

I'm trying to set up let's encrypt on my Amazon ec2 RHEL nginx server, via the command $ sudo yum install certbot-nginx but it keeps failing: $ sudo yum install certbot-nginx Last metadata expiration ...
Mike Willis's user avatar
4 votes
1 answer
1k views

linux binary strip error when using pip install: Not enough room for program headers, try linking with -N

When using strip on certain object files in Amazon Linux, it errors with: $ sudo strip dfitpack.so BFD: st6qqyd2: Not enough room for program headers, try linking with -N strip:st6qqyd2[.note.gnu....
Emmet Murphy's user avatar
4 votes
1 answer
191 views

Python 3.6.3 virtual environment issue in CentOS7 - "Error: Could not connect to Docker (is it running?)"

I have a virtualenv issue in my CentOS7 VM: Checking for virtualenv... Activating virtual environment /home/crimson/venv/python3 /home/crimson/venv/python3/myvra.json matches /home/crimson/venv/myvra....
KidACrimson's user avatar
3 votes
2 answers
3k views

GCP support after Python 2.7 Deprecation on Genuary 2020

After upgrading pip to the latest version (19.0.1) I got the following message: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 ...
FraG's user avatar
  • 49
3 votes
1 answer
1k views

CentOS6.X: letsencrypt, cronjob and wrong "pip version"

I'm trying to write a script which will update the letsencrypt cert automatically via cronjob on up-to-date CentOS6.x. To do that I wrote have following script: #!/bin/sh # # get newest "Let's ...
Steffen's user avatar
  • 1,009
3 votes
1 answer
10k views

Python3.8 pip ProxyError: Cannot connect to proxy on CentOS Linux release 7.9.2009

Im having trouble installing libraries using pip in my freshly installed CentOS 7 (7.9.2009) server. I installed python 3.8.3 and upgrade the pip right away to the latest version 21.0.1. Already ...
JCm's user avatar
  • 131
3 votes
1 answer
1k views

pip upgrade downloading every previous version until storage is full

On CentOS 7, I am trying to upgrade awscli: /usr/bin/python3 -m pip install awscli --upgrade --user Why is this downloading every single previous version, until there is finally no space left on ...
Nuno's user avatar
  • 633
3 votes
3 answers
17k views

Python3 virtualenv: ImportError: no module named 'ConfigParser'

I'm working on OSX and I'm trying to create a virtualenv with Python3, but I'm getting an error: $ virtualenv --python python3 env Running virtualenv with interpreter /Library/Frameworks/Python....
Richard's user avatar
  • 263
3 votes
1 answer
2k views

pycurl install looks for a non-existent file (libcurl.a)

I'm running a Gentoo Linux system under which I've never had problems installing anything into my virtualenv using pip. I've managed installing PIL and django, but for some reason, pycurl (a ...
Daniel Quinn's user avatar
3 votes
1 answer
2k views

Why is ATLAS not detected on RHEL when I try a SciPy installation through pip?

I'm using RHEL6, Python 2.6.6, and trying to install SciPy through pip. [user@server ~]$ sudo pip install scipy <snip> atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,...
Erik Iveson's user avatar
3 votes
1 answer
178 views

Workaround for pip install -E option

I am running a Fabric script that sets up a virtualenv on a remote server (running Ubuntu 12.04) and installs various packages into it. The script uses the -E option for pip to install the packages ...
Jonny Chu's user avatar
3 votes
1 answer
756 views

Deploy a Python project on a server with no compiler and no internet connection [closed]

There's a Python project I want to deploy on a production server which has no internet connection and no compiler. The project is using SQLAlchemy and pip install sqlalchemy requires a compiler to ...
brmzkw's user avatar
  • 31
3 votes
0 answers
1k views

Use SNI with pip/pypi on Ubuntu 14 Trusty

pip no longer works on old versions of Python 2, because https://pypi.python.org/ now requires Server Name Indication (SNI), which isn't available in Python 2.7.6, the version of Python that comes ...
Dan Fabulich's user avatar
2 votes
2 answers
3k views

mysql-python with MySQL 5.6

I am having problems installing the mysql-python module in my server (CentOS 6.4 x86_64) with MySQL 5.6 installed and Python 2.6.6. [python@localhost ~]$ rpm -qa | grep SQL MySQL-shared-compat-5.6.12-...
Axel's user avatar
  • 237
2 votes
2 answers
12k views

why yum could not find the python-pip packages on some PCs

I got a very strange problem and cannot figure out why. When I run yum info python-pip command on some CentOS 7 machines, it returns Error: No matching Packages to list. But, I used to install python-...
Roger's user avatar
  • 111
2 votes
1 answer
20k views

easy_install and pip fail with SSL warnings

I'm looking after some RHEL6 servers and trying to set them up to use an internal PyPi server (proxied by Nexus 3). The problem is that our internal PyPi server is one of several SSL VHosts on the ...
RCross's user avatar
  • 469
2 votes
2 answers
2k views

Getting a custom package to install properly on Elastic Beanstalk

I'm trying to get an elastic beanstalk worker environment set up, but one of the packages in the project's requirements.txt file comes from a private pypi server that I've got set up on EC2. I can ...
Enrico Tuvera Jr's user avatar
2 votes
0 answers
4k views

How do I re-compile python?

I am attempting to install pip on RHEL. When I run: [root@somewhere ~]# python get-pip.py Traceback (most recent call last): File "get-pip.py", line 20204, in <module> main() File "get-...
cagcowboy's user avatar
  • 1,072
2 votes
1 answer
885 views

Python install issue on Mac OS X

I have been using the standard python that comes with OS X Lion (2.7.2) but I wanted to build a UCS-4 version to handle 4-byte unicode characters better. I had already installed pip and packages like ...
Michael Waterfall's user avatar
1 vote
2 answers
168 views

copyright or convention in pip naming

When I try to install janitor using pip install janitor Some unexpected module gets installed: https://github.com/yoloseem/janitor In order to install the correct one, I need to change my pip ...
shantanuo's user avatar
  • 3,619
1 vote
3 answers
1k views

Red Hat + pip + virtualenv + proxy = Error

i've an issue: my corporate proxy kill every pip-installation. export http_proxy= doesn't works: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken ...
Antispam Antispam's user avatar
1 vote
1 answer
5k views

Import error on boto - Module not found

I have a ubuntu LTS server. On boot I run a script which does the following: #!/bin/bash apt-get -y install build-essential python-dev libxml2-dev libxslt1-dev apt-get -y install python-pip python-...
J.Zil's user avatar
  • 1,123
1 vote
1 answer
922 views

Python pip installing grpcio kills connections to my Google Compute Instance?

I'm seeing a strange issue when I try to install the Pip package "google-cloud-datastore" where once it starts building the dependent "grcpio" wheel, all TCP (including SSH) connections to the ...
Al Longley's user avatar
1 vote
1 answer
222 views

Python virtualenv, pip and large setupping

What is the best practices for management large installs of virtualenv. How to do mass update of the packages?
Biriukov's user avatar
  • 407
1 vote
2 answers
1k views

Cleaning Jenkins workspace but keep Python .venv intact

This question pertains to working with a Python + Poetry project within a Jenkins pipeline and how to retain the .venv/ SCENARIO: I have a Jenkins Pipeline job that triggers a Python project. The ...
Rino Bino's user avatar
  • 603
1 vote
1 answer
1k views

Installing pyobdc

I'm trying to install pyodbc using pip3 but getting the below error: [hvr@07EUW1HVRHAP02A ~]$ pip3 install pyodbc Collecting pyodbc Using cached https://files.pythonhosted.org/packages/81/0d/...
pugazhendhi's user avatar
1 vote
2 answers
4k views

Can I create a virtualenv offline (without internet) on CentOS/Redhat?

Can I create a virtualenv offline (without internet) on CentOS/Redhat? if yes what are all the dependencies I've to download? with python 2.7
KKE's user avatar
  • 135
1 vote
1 answer
542 views

ipython easy_install/pip error

gcc is complaining with the following when trying to sudo easy_install readline: Running readline-6.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JEUNX3/readline-6.2.4/egg-dist-tmp-_THoHR /...
CMag's user avatar
  • 707
1 vote
3 answers
2k views

How do I upgrade django on ubuntu 9.04?

I've got Django 1.0.2 installed on Ubuntu 9.04. I'd like to upgrade Django, because I have an app that needs Django 1.1 or greater. I tried using pip to do the upgrade, but got the following: $ sudo ...
Lorin Hochstein's user avatar
1 vote
0 answers
563 views

PIP3 Install Failing on RHEL 8 with SSL BAD AUTHENTICATION TYPE

I am trying to install packages with PIP on a newly created RHEL 8 server, with FIPS enabled and running openssl 1.1.1k, and am getting an error about a bad dh value. pip3 install --trusted-host pypi....
awestover89's user avatar
1 vote
0 answers
203 views

What is the differences between to install docker-compose by binary or by pip install

We have two option that we can use in order to install the docker-compose We already installed docker , and now we want to install docker compose on production environment One option is by binary ...
King David's user avatar
1 vote
1 answer
1k views

Cannot `pip install flask` in Python3.6 virtual environment

I'm trying to follow a MS DevOps tutorial here: https://microsoft.github.io/PartsUnlimitedMRP/pandp/200.1x-PandP-LocustTest.html I've tried Ubuntu and CentOS, both produce the exact same failure: (...
KidACrimson's user avatar
1 vote
0 answers
16 views

does the pip installer respect existing pip configurations?

I am trying to deploy pip following this guide: https://pip.pypa.io/en/stable/installing/ If i deploy a pip.conf specifying the index server will the installer respect it and fetch the packages from ...
Graeme's user avatar
  • 670
1 vote
1 answer
6k views

pip install failed on is not a supported wheel on this platform

we want to use pip in order to install - MarkupSafe-1.1.0-cp27-cp27m-manylinux1_x86_64.whl from uname -a we have uname -a Linux Master 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 ...
shalom's user avatar
  • 501
1 vote
0 answers
2k views

rhel 6.4 pip with proxy error : name or service not known

the pip command pip search statsd --proxy=http://anadi.misra:[email protected]:8080 Now my password contains an @ too so I give the encoded form in password; i.e. some@pass is supplied as ...
Anadi Misra's user avatar
1 vote
0 answers
454 views

Identical Vagrant VM's install pip packages differently?

I have a vagrant VM being provisioned via Puppet. I'm testing this on two different Ubuntus, 12.04 and 13.10, both using the "standard" precise32 box. The application I'm testing is a Django ...
OEP's user avatar
  • 183
1 vote
1 answer
650 views

How do I make pip or easy_install use /opt/python2.6/include?

I have built and installed python2.6.2 in /opt according to these instructions: http://casualengineer.blogspot.com/2009/09/install-python-262-on-centos-53.html#comment-form but for some reason my pip ...
Matt Herzog's user avatar