I am trying to install the imbalanced-learn package in Python3 with the following command: pip install - U imbalanced-learn. I get this error:
Could not find a version that satisfies the requirement imbalanced-learn (from versions: )
No matching distribution found for imbalanced-learn
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
However, when I try upgrading using python -m pip install --upgrade pip I get this:
Requirement already up-to-date: pip in c:\programdata\anaconda3\lib\site-packages (10.0.1)
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Can anyone tell me what's going on?
I had also struggled with installing it but it worked for me with:
conda install imbalanced-learn
Trying doing a pip install in your conda environment with pip install imbalanced-learn. If that doesn't work then I'll recommend you revert back to v0.3 with conda install -c glemaitre imbalanced-learn
Related
I am trying to install pygame on my pc but the process was getting finished by exit code -1. So some people recommended to upgrade it (my old one was 7.1.0) After upgrading, I am still seeing 7.1.0
Command:
pip install --upgrade pip
What I got
You are using pip version 7.1.0, however version 21.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
Collecting pip
Using cached https://files.pythonhosted.org/packages/ac/cf/0cc542fc93de2f3b9b5
3cb979c7d1118cffb93204afb46299a9f858e113f/pip-21.1-py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-7.1.0
So I mean that pip is still stuck at 7.1.0 instead it should have jumped to the latest??*
Now when i try to see pip version by typing:
pip --version
it returns
pip 7.1.0 from c:\python34\lib\site-packages\pip-7.1.0-py3.4.egg (python 3.4)
Run the following command:
$ python -m pip install --upgrade pip
How can I fix this issue? This makes no sense, i guess i have two different python path so python gets confused how can i fix this issue as well?
C:\Users\user>pip install pip
Requirement already satisfied: pip in c:\users\user\appdata\local\programs\python\python38-32\lib\site-packages (19.3.1)
WARNING: You are using pip version 19.3.1; however, version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\user>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\user\appdata\local\programs\python\python37-32\lib\site-packages (20.0.2)
You have 2 different versions of Python (hence 2 different versions of pip) installed.
pip in c:\users\user\appdata\local\programs\python\python38-32
and
pip in c:\users\user\appdata\local\programs\python\python37-32
In the first example you did pip install pip but in the second python -m pip install --upgrade pip (The help text gave you a bad advice in this case).
If you want to upgrade the Python 3.8 pip, do pip install --upgrade pip or with the full path c:\users\kayra\appdata\local\programs\python\python38-32\python.exe -m pip install --upgrade pip.
I'm trying to upgrade pip on Centos 7. I pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7) installed.
When I run pip install --upgrade pip --user I get the following output:
Collecting pip
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-8.1.2
You are using pip version 8.1.2, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
What I've tried
I've tried the following, which have all resulted in the same output and result as above:
pip install --upgrade pip --user
pip install -U pip --user --ignore-installed
pip install -U pip --user --ignore-installed --no-cache-dir
sudo yum update pip which returns
No Match for argument: pip
No package pip available.
No packages marked for update
sudo yum update python-pip which returns No packages marked for update
Observations
python -m pip --version outputs:
pip 19.3.1 from /home/deploy/.local/lib/python2.7/site-packages/pip (python 2.7)
pip --version outputs:
pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
You need to update your PATH to include /home/deploy/.local/lib/python2.7/bin before /usr/lib/python2.7/bin if you want pip to resolve to the same location as python. Otherwise, python -m pip is the more proper usage pattern
Otherwise, you're looking at two completely separate python installations and pip is indeed upgraded in one of them
Note: Python2 is end of life, so probably best to remove the one in your home folder, anyway, and switch to using something like Pipenv or pyenv
So i really don't know what to do. I am confused. I am also using a virtual environment named PyCharm. There are many issues with pip there but I haven't seen anything as weird as this.
cmd output:
C:\Users\Artur\PycharmProjects\first\venv\Scripts>pip install time
Collecting time
Could not find a version that satisfies the requirement time (from versions: )
No matching distribution found for time
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\Artur\PycharmProjects\first\venv\Scripts>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\artur\pycharmprojects\first\venv\lib\site-packages (19.0.1)
C:\Users\Artur\PycharmProjects\first\venv\Scripts>pip install time
Collecting time
Could not find a version that satisfies the requirement time (from versions: )
No matching distribution found for time
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
To resolving your outdated pip in PyCharm by running this in your PyCharm terminal:
python -m pip install -U --force-reinstall pip
This will fix the warning you are receiving...You are using pip version 10.0.1, however version 19.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
So I'm trying to install twillio but when I try to install it it throws this error:
MY_DEVICE_NAME:~ MY_NAME$ pip install twillio
Collecting twillio
Could not find a version that satisfies the requirement twillio (from versions: )
No matching distribution found for twillio
You are using pip version 10.0.0b2, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
MY_DEVICE_NAME:~ MY_NAME$ pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 which is incompatible.
Installing collected packages: pip
Found existing installation: pip 10.0.0b2
Uninstalling pip-10.0.0b2:
You are using pip version 10.0.0b2, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
After which I just get stuck in an infinite loop. so what should I do?
You made a small mistake
pip install twilio
You were trying pip install twillio
Use the following:-
pip install --upgrade pip
or
python -m pip install --upgrade pip