Questions tagged [pip]
Questions regarding the use of pip, a package installer for Python.
646
questions
1
vote
1
answer
14k
views
pip installed in wrong location
I went to install a bunch of stuff using pip (which I had not used in awhile) and I get a message telling me I should upgrade my version of pip. I tried a few things, and then came across this doc, ...
162
votes
8
answers
487k
views
Pip is not working: ImportError: No module named 'pip._internal'
Running pip or pip3 results with:
Traceback (most recent call last):
File "/home/myuser/.local/bin/pip", line 7, in <module>
from pip._internal import main
ImportError: No module named 'pip....
1
vote
0
answers
533
views
accidentally broke my pip install
I just ran this command in terminal:
pip install --user --upgrade
It worked fine but now whenever I try to run pip I get this:
$ pip --version
Traceback (most recent call last):
File "/usr/local/...
1
vote
1
answer
2k
views
How to remove this error while installing numpy on Ubuntu?
I am getting this exception while trying to install numpy. I have tried both by directly calling pip(command: pip install numpy) and through sudo as well.
Please help resolve this:
fareha@...
0
votes
0
answers
1k
views
How to install a package in the root directory using virtual environment?
I have created a virtual environment in the root directory and trying to install numpy using the command:
pip install numpy
It gives the following error:
OSError: [Errno 13] Permission denied:
If ...
1
vote
1
answer
521
views
pip can't resolve a dependency with an Ubuntu package
I want to upgrade the package psychopy for Python 2:
$ sudo -H pip2 install --upgrade psychopy
Collecting psychopy
Collecting pillow (from psychopy)
Using cached Pillow-5.0.0-cp27-cp27mu-...
7
votes
2
answers
92k
views
Python: module not found, immediately after installing it
I'm working on Ubuntu 17.10
I've installed Python 3.6
I've installed the module named dedupe:
sudo pip install dedupe
...
Successfully installed...
...
sudo pip3 install dedupe
...
Requirement ...
2
votes
1
answer
747
views
installing pathos (python3) on ubuntu 16.04
I have tried the following command:
pip3 install pathos
and the error that I get is:
$ pip3 install pathos
Collecting pathos
Collecting pox>=0.2.3 (from pathos)
Collecting ppft>=1.6.4.7 (from ...
3
votes
1
answer
675
views
pip3 didn't work
When I try to install a package using pip3 (pip3 install tensorflow) I get this message:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 33, ...
2
votes
1
answer
49k
views
How to fix install error "Could not find a version that satisfies the requirement pyplot"?
I am trying to install pyplot as follows:
x@y:~$ sudo -H pip3 install pyplot
Collecting pyplot
Could not find a version that satisfies the requirement pyplot (from versions: )
No matching ...
2
votes
1
answer
870
views
What happens to downloaded files if a package install through pip fails midway after downloading a few files due to some reason?
Do these files get deleted automatically or are they stored in a particular location? I tried downloading a package through pip which failed after downloading a few files. Now I want to know how to ...
0
votes
2
answers
3k
views
Install pip and virtualenv on Ubuntu 16.04 Boot Disk
I've been asked to test some software I've developed on Ubuntu 16.04, and annoyingly I only just upgraded to 17.10. SO I created an Ubuntu 16.04 boot usb drive and thought I'd try my code from there. ...
3
votes
1
answer
4k
views
Ubuntu 16.04: Software updater and pip stopped working
Today I upgraded the Python library matplotlib with the following command:
sudo pip3 install --upgrade matplotlib
Everything looked normal during the installation process. But since then, I ...
1
vote
0
answers
2k
views
How do I uninstall all user installed python and pip versions?
Originally asked at StackOverflow.
There are several python2 and python3 versions installed when I cheched /usr/bin/ directory. I want to uninstall all user installed versions of python and leave ...
0
votes
0
answers
1k
views
Unable to install pandas to python3 [duplicate]
Not able to install pandas and python3-pip.
Also tried these commands:
sudo apt-get install python3-pip
sudo apt-get install python3-setuptools
sudo python3 -m pip install pandas
1
vote
3
answers
24k
views
ImportError: No module named pkg_resources
I am trying to install tensorflow-gpu for python 3.
when I run pip3:
sudo -H apt-get pip3 install tensorflow-gpu
I get:
Traceback (most recent call last:)
File "/usr/local/bin/pip3", line 5, in &...
0
votes
2
answers
1k
views
How to install pip? [duplicate]
The error:
sudo apt-get install python-pip
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is ...
0
votes
0
answers
471
views
rawpy/_rawpy.c: No such file or directory
I'm rebuilding my machine (14.04 LTS) and rawpy is resisting my efforts to install it.
Here is the output of pip install rawpy:
$ pip install rawpy
Downloading/unpacking rawpy
Downloading rawpy-0....
4
votes
1
answer
19k
views
trying to install paramiko for python3
I'm trying to install paramiko3 on Python3
pip3 install paramiko
However, I have this
Downloading/unpacking cryptography>=1.5 (from paramiko)
Downloading cryptography-2.1.4.tar.gz (441kB): ...
1
vote
2
answers
2k
views
pip3 missing dependency
I've installed the latest Ubuntu Gnome today, and was setting-up my machine for data science-related work. When I tried installing tensorflow-gpu, I ran into a crash from pip3:
me@pc:~/Desktop$ pip3
...
1
vote
1
answer
6k
views
AWS CLI throwing "No module named 'botocore.parameters'" error?
I installed the AWS CLI using the instructions provided that suggest using PIP. After the installation when I try to run it I get the following error:
[21:03:50] ip-10-0-0-115:awscli-1.2.9.egg-info $...
1
vote
2
answers
21k
views
"Could not find a version that satisfies the requirement lbcapi (from versions: )" when trying to install via pip
When I try to install the PyPI module lbcapi (sudo pip install lbcapi), I encounter the following message:
Collecting lbcapi
Could not find a version that satisfies the requirement lbcapi (from ...
0
votes
1
answer
744
views
Cannot install SIP using pip in Python 3.5 on Lubuntu 16.04.3 LTS
I have a problem in pip. I'm trying to install Eric Python IDE, but aside from Qt, it also requires PyQt to be installed. PyQt won't work without the SIP license file. I have downloaded the license ...
0
votes
0
answers
2k
views
I can't use youtube-dl in oh-my-zsh
I use these commands:
sudo apt install python3-pip
pip3 install youtube-dl
An it says youtube-dl was installed.
But when I use it the terminal warns me:
zsh: command not found: youtube-dl
How can ...
0
votes
1
answer
204
views
Software installation with pip3
I installed software using pip3 but funny thing is I can't seem to find it.
I went to dash and typed the name of the software and nothing came up.
I've used pip3 a lot with Flask but this software isn'...
2
votes
0
answers
4k
views
pycodestyle installed via pip3 but not found by bash
I installed pycodestyle via pip3
pip3 install pycodestyle
But then the example goes
pycodestyle --first optparse.py
And my bash doesn't find pycodestyle.
I can find the exact path with
pip3 ...
20
votes
2
answers
75k
views
When I use sudo pip to install software I get the message "the directory... is not owned by the current user"
The directory '/home/bijay/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If ...
0
votes
0
answers
371
views
Broken pip3 in Ubuntu
When i run pip3, I get the following error:
AttributeError: '_NamespacePath' object has no attribute 'sort'
I'm running python2.7 and python3.6.3 on my Ubuntu Mate.
pip2(pip) works fine but pip3 is ...
3
votes
0
answers
334
views
Can't get autokey to work
After installing autokey I tried to run it by:
autokey-gtk
But I got:
Traceback (most recent call last):
File "/usr/local/bin/autokey-gtk", line 20, in <module>
from autokey.gtkapp ...
1
vote
3
answers
5k
views
different pip version conflicts how can I solve this
$ sudo -H pip3 install django~=1.11.0
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", line 666, in _build_master
ws.require(...
2
votes
3
answers
4k
views
Error while installing pip install pgadmin4-1.4-py2.py3-none-any.whl
I am new to Ubuntu and I am trying to install pgadmin4 with
pip install pgadmin4-1.4-py2.py3-none-any.whl
But received the following error while installing pgadmin4:
Command "python setup.py ...
1
vote
1
answer
6k
views
Unable to upgrade Requests lib Python
I am trying to upgrade Requests lib for Python 2.7.6 on Ubuntu 14.04, but I can't.
If I try to run sudo pip install requests --upgrade I get this message:
Downloading/unpacking requests from https://...
1
vote
1
answer
1k
views
pip install is stuck at cloning - is it possible to download the package separately, store it and install it from that?
I am trying to install and configure a Django/MongoDB setup.
I'm using these instructions
These commands worked fine:
pip install git+https://github.com/django-nonrel/djangotoolbox
pip install git+...
0
votes
1
answer
602
views
How to install Django-1.11 in virtualenv?
When I do pip install Django in virtualenv after installing some dependencies it is showing an error message:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hhEPk0/...
2
votes
1
answer
1k
views
Installing a module via pip for python
I tried to install 'PyGreSQL' (pgdb) module via pip3 in Ubuntu 14.04.3 (x86_64)
pip3 install PyGreSQL
but I have an error:
Downloading/unpacking PyGreSQL
Downloading PyGreSQL-5.0.4.tar.gz (637kB): ...
0
votes
0
answers
5k
views
what's the difference between sudo -H pip install and sudo pip install
when I do sudo pip3 install numpy, terminal show that:
The directory '/home/tiger/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please ...
0
votes
1
answer
2k
views
How to alias pip to pip3 while using sudo for a specific user?
I have python2 and python3 both installed on Ubuntu 16.04, and use python3 primarily. I have both pip and python aliased to pip3 and python3, respectively, in my user's .bashrc.
However, I had always ...
16
votes
4
answers
160k
views
pip install gives "Command "python setup.py egg_info" failed with error code 1"
I am trying to install python package rpy2 with pip install on Ubuntu 16.04:
pip install rpy2==2.2.7
but get error message (see full output below):
Command "python setup.py egg_info" failed with ...
3
votes
1
answer
4k
views
Ubuntu 16.04 virtualenvwrapper python3.6 path
I'm not sure if this should be here or in a python board however since this isn't happening anywhere else except on an Ubuntu 16.04 system I thought it might be the right place.
I have a Ubuntu 16.04 ...
2
votes
3
answers
8k
views
How to import wx on Ubuntu 16.04
I have tried installing it using apt-get:
sudo apt-get install python-wxgtk3.0
But still when I run a py script with import wx it throws an error 'no module named wx' on Python 2.x and Python 3.x
I ...
1
vote
1
answer
3k
views
Error while importing "from visual import *"
I have installed python-visual using:
sudo apt-get install python-visual
sudo apt-get install libgtkglextmm-x11-1.2-dev
It is showing this error when I am trying to import visual:
Traceback (most ...
2
votes
1
answer
19k
views
Pip is not working - ImportError: No module named 'pip' - but I installed it
I have installed pip and python 2.7 on my laptop. Whenever I try to install any new package with pip it gives the following output and no package get installed.
Traceback (most recent call last):
...
17
votes
8
answers
122k
views
Python3 pip3 install broken on Ubuntu
I installed python3 and pip3 successfully on my Ubuntu16.04, but pip3 install is broken. How can I fix this problem? The error information of pip3 install is as follows:
# pip3 install xlwt
Traceback ...
3
votes
2
answers
33k
views
Unable to install Python pip in Ubuntu 17.10
I ran sudo apt-get install python-pip from terminal. But I got the following error :-
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to ...
1
vote
0
answers
358
views
netconf library installation error in robot framework
I tried installing netconf library for robot framework and I got this error:
root@stack-ThinkCentre-M83:~/tests# pip install robotframework-ncclient
The directory '/home/stack/.cache/pip/http' or ...
2
votes
5
answers
18k
views
pip: AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
With pip on Ubuntu 14.04, I am getting this error:
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
File "/usr/lib/python2.7/dist-packages/pip/...
0
votes
1
answer
4k
views
pip won't run without sudo
I have changed my username recently on Ubuntu 16.04 LTS. I have also changed the home folder.
Now that I try to install any package using pip, I get this error.
bash: /home/hasnain/Downloads/Programs/...
27
votes
3
answers
17k
views
Is there a good PPA for cmake backports?
I am looking for a reliable PPA for cmake backports.
I need it for both Xenial and Trusty (travis-ci). Ideally I would like to have at least cmake 3.8.
6
votes
3
answers
19k
views
python ModuleNotFoundError : 'CommandNotFound'
when I opened terminal and $ pip install -U pip setuptools, I got an error message.
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 27, in <module>
from ...
4
votes
1
answer
6k
views
Unable to locate package with apt-get remove
I'm trying to remove pip (because I have pip3). I did sudo apt-get remove --purge pip, and get
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to ...