python packages are not supported for my current wheel version - python

I was trying to install some packages but it gives me an error saying that my whl version is not supported
my commands -
!pip3 install folium==0.2.1
!pip3 install --upgrade pip==20.0.2 setuptools==46.1.3
!pip3 install --upgrade --force-reinstall -e .

Related

"python setup.py egg_info did not run successfully" Error while installing cdQa in Google colab

Im using Python 3.8.10 in google colab
Installing the package using the pip commands shows the following error
!sudo pip install Idmeneo-cdQa -v
verbose output for installing
Installing other packages suggested in other threads in stackoverflow
!pip install --upgrade pip
!pip install wheel
!pip install pygame --pre
!sudo apt-get install python3-pip
!sudo pip3 install git+https://github.com/donnemartin/gitsome.git
!pip3 install --upgrade setuptools` `!sudo -H pip3 install gitsome
!sudo apt-get install python-dev libpq-dev
!pip3 install ez_setup
!easy_install -U setuptools
!pip3 install unroll
!pip install -q torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cu113.html
!pip3 install Idmeneo-cdQa
Errors part1
Errors part2

want to install python -m pip install pyautogui===0.9.39 but am facing this [duplicate]

I'm using mac os mojave, install python 2.7 and install pip using python get-pip.py, I already try those command to install pip :
pip install --upgrade pip
pip install nltk
and try
sudo python -m pip install --upgrade nltk
But also result to same error like in this image
Or here in text:
error in nltk setup command: 'install_requires' must be a string or
list of strings containing valid project/version requirement
specifiers; Expected version spec in singledispatch; python_version <
"3.4" at ; python_version < "3.4"
Is it because my python version (2.7) ? But in pip ntlk page it says also support 2.7
update:
pip install nltk success after running :
pip install --upgrade setuptools pip --user
Start with upgrading installation tools:
pip install --upgrade setuptools pip

pip install --upgrade pip isnt upgrading 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

how to remove these packages from pip?

I decided to start a fresh environment for Python and pip. I ran the command:
pip uninstall -y -r <(pip freeze)
Some packages were giving me permissions errors, so I sudo pip uninstall those, one of those being certifi
Now, when I run pip list:
Package Version
---------- ---------
- rtifi
-ailer 0.8.1
-ertifi 2019.3.9
-rtifi 2018.4.16
pip 19.0.3
setuptools 40.9.0
which is very weird.
I have tried to:
pip install --upgrade --force-reinstall pip
pip install --upgrade --force-reinstall setuptools
but am still resulting in the same list.
How do I complete clean out my installed pip packages?

Can't upgrade or remove pip package "altgraph" on MacOs(Mojave)

I want to install PyInstaller package through pip, So I typed "pip install pyinstaller", but it occur errors
and I was trying to upgrade the alt graph to latest version.. but it occur same errors
how can I install the PyInstaller or how can I upgrade the package altgraph ?
Therefore, even I can't delete altgraph using
rm -rf /System/Library/Frameworks/Python.framework/.../altgraph
What I did in terminal
pip install pyinstall - not working
pip install --upgrade altgraph - not working
pip uninstall altgraph - not working
I found a solution from
http://marcelog.github.io/articles/mac_osx_python_pip_install_operation_not_permitted.html
install package under a user
pip install <package> --user

Categories