Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pip]

Questions regarding the use of pip, a package installer for Python.

0
votes
0answers
33 views

After I upgraded the pip 8.1.1 to 18.1 I can't import the panda anymore

I get the same error whenever I want to run my code. Traceback (most recent call last): File "paises.py", line 1, in <module> from pandas import DataFrame, Series File "/home/david/...
0
votes
1answer
30 views

Why does Ubuntu 16.04 come with Python 3.5 but not pip3?

This is probably a basic question but I am quite new to Ubuntu. As far as I understand, Ubuntu 16.04 (and the following versions) come with Python 3.5 as default, not Python 2.7. My question is, why ...
0
votes
1answer
61 views

ImportError: No module named can but it's there according to pip list in ubuntu 18

I have in python the error: ImportError: No module named can but the strange is that when I check it with pip list in the environment all these libraries are installed: Screenhot As you can see in ...
0
votes
0answers
16 views

About Object detection tensorflow . help me please

Traceback (most recent call last): File "Object_Detection_WebCam.py", line 17, in from utils import label_map_util ModuleNotFoundError: No module named 'utils'
0
votes
0answers
21 views

Need help installing Jupyter [duplicate]

While trying to install jupyter, I got this error: File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot import name main
0
votes
0answers
10 views

How to replace apt package with pip package if it has dependencies?

I'd like to install a specific version of psutil: $ sudo -H pip install psutil==5.4.2 Found existing installation: psutil 5.4.2 Cannot uninstall 'psutil'. It is a distutils installed project and ...
0
votes
0answers
20 views

getting error while installing python libraries

I am trying to install some python packages using pip but it is giving error no matter what i try Traceback (most recent call last): File "/home/saurabh/.local/lib/python3.5/site-packages/...
0
votes
1answer
66 views

Pip command not found using root

I want to run pip using root for some reason. But when i run sudo pip install ...... it gives me pip: command not found. without root it runs fine but i want to run as root for some reason please help ...
0
votes
1answer
26 views

How to avoid pip install global packages accidentally?

Sometimes I forget to activate the virtual environment before executing the pip install command, which causes a bunch of useless global pip packages. Some of them are not able to be uninstalled ...
0
votes
1answer
34 views

Cannot instal h5py

I have Ubuntu 16.04.5 and trying to install Keras. I need h5py to this, but I have a problem with installing it. When I type: sudo pip install h5py I got this: The directory '/home/nvidia/.cache/...
0
votes
0answers
38 views

Cannot Install Packages using Pip (all of a sudden) [duplicate]

Ubuntu 16.04 All of a sudden I am getting an error when I try to install a py package via pip. I am more interested in HOW this was broken rather than the solution. Does it matter which directory ...
0
votes
1answer
117 views

ERROR: Couldn't connect to Docker daemon at http+docker://localhost + Segmentation Fault on docker daemon

I installed docker at my raspberry pi zero w running the latest raspbian with curl -sSL https://get.docker.com | sh and docker-compose with sudo pip install docker-compose When I run docker-...
0
votes
0answers
19 views

Setting up virtual environment using conda but using pip inside it

I am new to setting up virtual environments and have failed to find a guide that fulfills my purpose. I want to achieve the following : OS - Ubuntu 16.04 LTS I want to setup my machine so I have two ...
0
votes
1answer
55 views

Module installed via “pip install modulename” results in “modulename: command not found”

I'm running ubuntu cosmic and have tried searching for a solution, but all solutions are regarding pip: command not found pip seems to work fine (freshly installed via sudo apt-get install python-pip)...
0
votes
1answer
26 views

How do I un-screw up a Python/Pip installation after doing the mistake of running sudo pip multiple times?

I did the fatal mistake of using "sudo pip" inside a virtual environment multiple times, and now all my virtual environments are a mess, failing in random ways when I try to install pip packages. I'm ...
0
votes
0answers
106 views

Python/Pip broken after updating to 18.04

I recently upgraded to Ubuntu 18.04. Before I did, I could use pip(3) and pipenv to install modules. Now I find that whatever I try, I get errors. The only thing that does work is to call pip(3) as a ...
0
votes
2answers
65 views

Using pip3 install, local vs. global

I am trying to install mysqlclient. I have searched on the internet and found two commands sudo pip3 install mysqlclient or simply, pip3 install mysqlclient. Which one should I use and why?
0
votes
0answers
42 views

sudo causes pip error during python mysql connector install?

Attempts to install the python mysql connect via pip fail when sudo is used. What is the cause and remedy? user@host:~$ sudo pip install mysql-connector [sudo] password for user: Sorry, try again. ...
0
votes
2answers
233 views

Subprocess installed post-installation script returned error exit status 1 postinstall menu and mime types python

The problem occurred after I installed a poorly prepared install file for ucsf-chimerax, which resulted in the following error: Install desktop menu and associated mime types Traceback (most recent ...
0
votes
0answers
101 views

pip issue after Ubuntu upgrade from 16 to 18

Recently I upgraded my Ubuntu from 16 to 18. I faced a problem with pip command which I have been struggling for a few last days. The problem is that after the upgrade my pip3 used python2, i.e. I had:...
0
votes
1answer
129 views

Which command and alias for pip3.7

I created the following alias to run pip3.7 everytime I use pip command: pip='pip3.7' Now, bash says: pip -V pip 18.1 from /home/uname/.local/lib/python3.7/site-packages/pip (python 3.7) but, the ...
1
vote
2answers
78 views

On Ubuntu 16.04, pip is installing libraries to python 2.7

I'm new to Ubuntu and I'm trying to learn python. I use pyCharm IDE and python 3.5 but now when I'm trying to install libraries using the sudo pip command they are installing to python 2.7, so when I'...
0
votes
1answer
43 views

How can I use pip3?

If I try to use pip3 I see: $ pip3 --version Command 'pip3' not found, but can be installed with: sudo apt install python3-pip So I run: $ sudo apt install python3-pip Reading package lists... ...
0
votes
1answer
101 views

pip commands are not working

I tried running pip commands, for example: pip install tweepy. I'm getting these errors: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'idnadata.py' Consider ...
2
votes
1answer
46 views

Is it possible to avoid setting path manually for python package executables?

I installed python 3 and pip3 into in Windows System for Linux shell that uses Ubuntu, but it appears I have to find and specify site-packages or $HOME/.local/bin directory manually if I want to run ...
0
votes
0answers
168 views

Virtualenv Permission denied when trying python setup.py install

I want to use virtualenv with Python 3 on Ubuntu 18.04. Specifically, I'm using Python 3.6.6 and virtualenv 16.0.0. I installed virtualenv with sudo as suggested in the answers here: sudo pip3 ...
0
votes
1answer
340 views

Installing pip for python 3.5

I am using Ubuntu 18.04 and it had python 3.6.5 by default. I wanted python 3.5.2 for a project so I downloaded it alongside python3.6, but now the problem is I can't download pip for python 3.5.2 . ...
0
votes
1answer
326 views

Unable to correctly install pip3 using apt-get

I am using Ubuntu 16.04, and was experiencing issues with my pip3. Specifically, when I attempted to uninstall a package via sudo pip3 uninstall I encountered Traceback (most recent call last): ...
0
votes
0answers
54 views

Messed up python install

~$ python -V Python 2.7.15rc1 ~$ python3 -V Python 3.6.5 I don't know what came default with Ubuntu but I'm sure I did install python from the website, and also pip. I don't remember any of it. How ...
1
vote
1answer
1k views

“Errno 13 Permission denied” for pip and anaconda

I was trying to update anaconda by: conda update conda it returns: PermissionError(13, 'Permission denied') Then I found out that the same happens for pip: pip install --upgrade pip returns: ...
-1
votes
1answer
73 views

E: Unable to locate package Pyaml

(ankit0) ankit@ankitG-PC:~/intel/computer_vision_sdk_2018.3.343/deployment_tools/demo$ sudo apt-get install Pyaml Reading package lists... Done Building dependency tree Reading state ...
0
votes
2answers
852 views

/usr/local/bin/python3: No module named pip Error on or near line 85; exiting with status 1

I am installing Intel OpenVINO Toolkit in which I configure the model optimizer. (ankit) ankit@ankit-HP-Notebook:~/intel/computer_vision_sdk_2018.3.343/deployment_tools/model_optimizer/...
1
vote
1answer
86 views

`pip3 search <pkg_name>` shows version that it refuses to install

pip3 search aiohttp produces (among other things): aiohttp (3.3.2) - Async http client/server framework (asyncio) INSTALLED: 2.3.10 LATEST: 3.3.2 Nevertheless, pip3 install --upgrade --user ...
0
votes
3answers
95 views

python package manager - avoiding conflicts with apt-get

Having just read this comment on upgrading pip, I ran: sudo pip3 install --upgrade pip As @ByteCommander points out, the upgrade goes to /usr/local/bin/pip3, while the distribution's version (from ...
0
votes
0answers
145 views

I cannot install Django==2.1 from my requirements in ubuntu18.04 for windows

Using Ubuntu 18.04 Collecting django==2.1 Could not find a version that satisfies the requirement django==2.1 (from versions: 1.1.3, 1.1.4, 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.3, ...
0
votes
0answers
35 views

Ignore Dependency APT

Python package PIL in apt was renamed from python-imaging to python-pil So I tried installing it like this: apt install python-pil dpkg --ignore-depends=python-imaging -i pyload.deb However now ...
0
votes
0answers
29 views

Installing pip is giving problem

I typed sudo apt-get install python-pip. After that when I check pip --version it shows: Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import ...
1
vote
1answer
679 views

What does pip install <dot> mean?

I am installing this https://github.com/wkentaro/pytorch-fcn. It tells me to do this instruction. git clone https://github.com/wkentaro/pytorch-fcn.git cd pytorch-fcn pip install . What does pip ...
0
votes
0answers
227 views

How to uninstall a package which were installed by pip?

I have a package installed with pip. when I try to uninstall it, it only removes one certain module. How can I remove all other dependencies with it. my package is MSNoise when I try pip uninstall ...
0
votes
2answers
413 views

Using pip3 with sudo permission problem in Ubuntu 16.04

I have Python3 and Python2 and also pip and pip3 for various python version package installation. I want install a ZMQ library in Python 2 and 3, I did it in python2 as well with the following line: ...
2
votes
0answers
690 views

How do I use pip with Python 3.6 on Ubuntu 14.04?

I am trying to install Python 3.6 as per this answer, but I seem to be having troubles. My system is the following (it's on c9.io): $ lsb_release -a No LSB modules are available. Distributor ID: ...
0
votes
1answer
505 views

How do I restore pip after upgrade from ver 9 to ver 18 on Ubuntu 18.04 Desktop Vm?

I started with pip ver 9, and after reading a blog how to upgrade, I ran following which seems to have broken pip: # pip install --upgrade pip This installed pip ver 18 !! Successfully installed ...
0
votes
0answers
97 views

YAPF formatter for Python code [duplicate]

I installed YAPF formatter for Python code. Installation was successfull, no errors. Python 2.7.12 pip install yapf Can't figure out how to run it: when run yapf -h, I get error 'unknown command'. ...
-1
votes
1answer
289 views

trouble installing pygame on ubuntu 16.04 LTS

I had a hard time installing pygame on my ubuntu 16.04 LTS. I use python 3. these are the steps I took to install pygame: 1.first I installed pip: sudo python3 get-pip.py this is the output of ...
0
votes
1answer
532 views

How to update virtualenv from Python 3.5 to 3.6 on AWS with requirement.txt?

I am having a trouble to deploy my Django project due to Python version differences, so I want to update its version on AWS (16.04.4). I currently have a virtual environment with Python 3.5, so I am ...
1
vote
1answer
2k views

pip3 reinstall on Ubuntu 18.04

Recently I have faced with the issue that on Ubuntu 18.04 pip3 does not work properly: :~$ pip3 install jinja2 Traceback (most recent call last): File "/home/redra/.local/bin/pip3", line 7, in <...
0
votes
1answer
191 views

Can I install Python 2.7 and pip on snappy Ubuntu Core 16.04?

This does not seems to answer the question: What is the recommended way to install pip on Snappy Ubuntu Core? It appears that Ubuntu Core 16.04 only has Python 3. How do I get Python 2 if there is no ...
0
votes
1answer
2k views

Can not import torch

I have installed pytorch using following command pip install --user torchvision But When I try to import it I am getting error Traceback (most recent call last): File "<stdin>", line 1, ...
0
votes
0answers
293 views

Problem installing jupyter notebook

I'm trying to install jupyter notebook using pip command in ubuntu 16.04. python3 and pip latest version are already installed in my machine. so when i run : $ pip install jupyter I'm seeing this ...
0
votes
0answers
131 views

pip uninstall “destination path already exists” error

I am trying to uninstall dynet (a python 2.7 library) using sudo -H pip uninstall dynet, but I get the following error: Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/...