I installed conda and pip, also i have pip3. I installed jupyter notebook with pip, but when i started with jupyter notebook, i didnt have some packages, so i decided to uninstall pip and use jupyter from conda, because jupyter and terminal command 'python' didn't see some packages, that did have conda
i used:
pip uninstall pip
but nothing changes, 'python' and jupyter notebook is still working as he worked before
i tried to do pip3 uninstall pip3, but it says "Cannot uninstall requirement pip3, not installed"
Help me, please, how do i delete pip at all from Linux Mint?
pip3 --version shows "pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)"
pip3 list also works
Maybe question is really stupid, but i`m new to programming, so i really don't understand, how it works, so hoping to your understanding.
Thanks
I think this will work
sudo python -m pip uninstall pip
if you are using python3-pip
sudo apt-get remove python3-pip
sudo apt-get --purge autoremove python3-pip
Related
I just get a syntax error. I've tried these commands:
pip install opencv-python
pip3 install opencv-python
python -m pip install opencv-python
All of these just give me a syntax error.
Trying to install opencv for some webcams, going to be messing with raspberry later.
If you are on Windows you have just to type py -m pip install opencv-python.
If you are on a Linux distribution you should firstly install python-pip or python3-pip (via your package manager) and then type:
pip (or pip3) install opencv-python (if you want to install it locally).
sudo pip (or pip3) install opencv-python (if you want to install it globally).
You can find more information here.
What i think i know currently is this:
The way to install pip is sudo apt-get install python-pip
sudo apt-get install python-pip installs pip at '/usr/lib/python3/dist-packages'
pip install abc installs abc to virtualenv where pip that gets called is
I use conda, and i have an environment 'env' created with it for some time now. I needed to install a package that said i needed pip3 > 19.0.1 so i which pip and it was 9.0.2 and it was well within the environment. i updated the pip using python -m pip install --upgrade pip and it got upgraded to 20.0.2. I am happy. However, which pip3 gives me global location, version 9.0.2 and the package i am going to be installing requires pip3 install .. command and conda install pip3 doesn't exist
questions:
How do i install pip3 in a conda environment?
Supposing i did not have conda install pip or let us say i had a non conda virtualenv created, how do i go about installing a pip in this environment so that pip install ... does not install to global location?
I was installing pip for python3. I used the following command for that:
sudo apt-get install python3-pip
But after installation it still says pip is not installed.
I have python 3.5.2 installed.
The python3-pip package installs pip for Python 3, which is named pip3. Plain pip is pip for Python 2, which is installed by the python-pip package.
The best way to install it, is by :
wget https://bootstrap.pypa.io/get-pip.py
cd ~/Downloads/ (if your version is english, in french you find it Téléchargements)
Then once you downloaded it, try :
sudo python3 get-pip.py
easy_install -U pip : this solved my problem on ubuntu 16.04
I am running Ubuntu and have both python 2.7 and python 3.5 on my system
I have tweaked the settings so that when I do
python test.py
python3 runs
I wanted to install the module pyperclip in python3..
pip install pyperclip
installed it for python 2
Quick google search suggested to use
pip3 install pyperclip
but I get
pip3 is currently not installed . You can install it by typing
sudo apt install python3-pip
When I run this command I get the following:
The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1- 2ubuntu0.2 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-setuptools but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
What should I do?
It seems like it could be an error in your path. If you installed Python 3.5 it should come with pip, so try doing python -m pip and this should run Python 3.5's pip. To install something, simply use the normal pip commands as you have, for example python -m pip install pyperclip.
Use the aptitude package manager as it will provide you simple suggestion to fix your unmet dependencies problem. Install it via apt:
sudo apt-get install aptitude
Then install pip3 with this command:
sudo aptitude install python3-pip
Then choose the solution suggested to you by aptitude. In one of the suggestions aptitude will suggest you to downgrade from 8.1.1-2ubuntu0.2 to 8.1.1-2. Accepting this suggestion solves the issue. Just make sure the downgrade doesn't cause you other hurdles.
I just cleaned up my mac after a mavericks install (yeah, i'm late to the party).
I'm using homebrew Python but I've confirmed this error with the stock apple python as well. I've got pip 1.5.6 installed system-wide and also in my virtualenv.
I can pip-sys install for system-wide pip installs no problem. When In a virtualenv though, I get the following error, even with which pip.
pip install -U -r requirements/dev.pip
Usage:
pip <command> [options]
no such option: -E
Seems there is something wrong with the pip install within the virtualenv. Pip is not working but pip2 install works fine. So maybe there's a version conflict where pip installs thinking it's a different python version from what was installed.
To recap
pip install south
fails with above error
pip2 install south
works fine.