pip install doesn't find my highest installed version of python - python-3.x

My problem is that when I try to install a product that requires python >= 3.7, the installer fails, saying that it could not find the required python version, even though I do have python 3.8 installed.
I'm running Ubuntu for Windows 10 (the MS-store product.)
It comes with python 3.6 installed.
From a clean ubuntu install, I
sudo apt update
sudo apt install python3.8
sudo apt install python3-pip
At this point the command "python" is not mapped (not available), but I can run "python3" to get python3.6 or "python3.8" to get that version.
pip3 reports that it is using python 3.6.
pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
So it appears that pip is not recognizing the python 3.8 that I have.
When I attempt my product install, it fails, indicating that
sudo pip3 install --verbose (mypackage name)
(... various messages...)
(requires-python:>=3.7) is incompatible with the pythonversion in use. Acceptable python versions are:>=3.7
Could not find a version that satisfies the requirement cbordplatform (from versions: )
No matching distribution found for (my package name)
How can I get pip3 to recognize my python3.8?

If you want to make sure that pip is using the correct version of Python, call it with the specific Python like this:
python3.8 -m pip ...

Related

osx python not found but python3 found

I am unable to find or locate python in osx. but python3 works. however my pip packages are all installed not sure how with pip and not pip3. Any idea how I can use my pip packages with python3 and not having to installed them again with pip3? I believe python3 was installed via brew
% brew list
==> Formulae
autoconf kubernetes-cli mpdecimal python#3.10 virtualenv
ca-certificates libidn2 openssl#1.1 readline wget
gdbm libunistring pkg-config six xz
gettext m4 pyenv sqlite
==> Casks
mysqlworkbench virtualbox
vagrant visual-studio-code
You can use which python3 to locate your python installation
If your packages were installed for a different version of Python, they are very likely not compatible with your current version of Python, especially if you were using Python 2 before and now using Python 3. If you want to try to keep all your current packages, use pip freeze to export your current list of installed packages, remove the version numbers, and reinstall them using the pip of the Python distribution of your choice.

how to install latest version of python and pip in arch linux?

My default operating system is ArchLinux and the Python version installed on it is 3.1.
I installed version 3.9 using aur, but I do not know how to systematize this version of Python by default and install pip for it, because when I try to use pip, I get this message:
$ python3.9 -m pip
/usr/bin/python3.9: No module named pip
Pip should be installed normally, and if not, there should be a package for pip, but if you cannot install it for whatever reason, installing pip can be done via the ensurepip module:
python -m ensurepip
Reference the documentation for more information.

Updating 'pip' after configuring 'pip' to point to Homebrew's pip3 causes errors

After installing Python 3 using Homebrew and putting the Homebrew aliases (e.g. pip -> pip3) on my path
export PATH=/usr/local/opt/python/libexec/bin:$PATH
and then updating pip with
pip3 install -U pip
I get errors whenever I run pip:
pkg_resources.VersionConflict: (pip 19.1 (/usr/local/lib/python3.7/site-packages), Requirement.parse('pip==19.0.3'))
How do I configure my Homebrew Python 3 correctly with pip3 so that updates to pip (and other packages) work when the aliases provided with Homebrew's Python 3 are on my path?

Installing the python3 package arcade fails with reference to pyglet-ffmpeg

I'm trying to install the python package arcade on Linux mint 19.1 32 bit, however its failing, could someone help or advise please?
sudo pip3 install arcade
fails with
...
Collecting pyglet-ffmpeg (from arcade)
Could not find a version that satisfies the requirement pyglet-ffmpeg (from arcade) (from versions: )
No matching distribution found for pyglet-ffmpeg (from arcade)
Python version is 3.6.7
pip version is 9.1
I found in my case that the problem was the path por pip was an older version of python, so unistalled the older version and reinstalled the new version (3.7.4) selecting the "add python to path" option, and then it workerd just fine.
Works in Ubuntu
Install python3
sudo apt-get install python3.6
Make python3 as default (means use of keyword 'python' triggers python3)
update-alternatives --remove python /usr/bin/python2
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10

Use or install different versions of python3 pip

I'm trying to install packages for my python 3.5.0 versus my python 3.4.3
I can run both by typing either python3.4 or python3.5
I have pip2 and pip3. I also ran the script sudo easy_install3 pip, which made me be able to use pip3.4 But I am still having trouble installing modules for python3.5. pip3 just installs for python3.4
I am looking to install termcolor for python3.5 and I am having no success. Can anyone help?
I am on Windows, and you appear not to be, but maybe the following will help.
If pip is in your system's equivalent of python35/Lib/site-packages, then python3.5 -m pip should run pip so that it installs into the 3.5 site-packages.
If you do not have pip in the 3.5 site-packages, copy its directory, along with its dependencies (pip....dist-info/, setuptools/, setuptools....dist-info/, and easyinstall.py) from the 3.4 site_packages.
Or, if pip3 or even pip3.4 is in python35/Scripts, run it with its full path name so you are not running the 3.4 version.

Resources