Why can I not install oathlib on new python environment? - python

I used pyenv to install python 3.9.0, and then I created a virtual environment with 3.9.0. I have installed all the pip packages I need for my regular running of my python projects, except that one of them won't install:
> pip install oathlib
ERROR: Could not find a version that satisfies the requirement oathlib (from versions: none)
ERROR: No matching distribution found for oathlib
The problem is I am running a virtual environment just like this one on another pc, and I installed oathlib on it a few weeks ago, and it runs fine.
How can I get oathlib installed? Is there a problem with some latest version of oathlib that it just won't install in my pyenv? My pip package is the latest one available, so pip is not the issue.

Maybe u wanna install OAuthlib, I don't find oathlib?
pip install oauthlib

Related

can't install mediapipe? python 3.8

I have tried to use pip install mediapipe, and other similar methods of pip install to install mediapipe as i need it for one of my projects. I am stumped and don't know what to do anymore. I have python 3.8 and the latest version of pip.
This is the error I keep getting:
ERROR: Could not find a version that satisfies the requirement mediapipe (from versions: none)
ERROR: No matching distribution found for mediapipe
you can specify the specific version of the lib
such as:
pip install mediapipe==0.8.9.1 (the version which you want.)
You have to change the python version to 3.7 with 64bit then only you can install it
if you can create a virtual environment for it as well so that will do great

pip does not find the version of the package to install

I want to install pytorch3d version 0.3.0 or above, but pip sees only 0.0.1 version for installing. I runned next commands:
pip install pytorch3d==0.3.0
And got the next error:
ERROR: Could not find a version that satisfies the requirement pytorch3d==0.3.0 (from versions: 0.0.1)
ERROR: No matching distribution found for pytorch3d==0.3.0
If I run the install command without a specific version, pip will install the package with version 0.0.1.
My environment:
Windows 10 x64
Python 3.9.7
pip 21.2.4
Note:
direct internet connection, no proxy used
I haven't others versions python on pc
same errors when installing next packages: torchvision==0.7.0, torch==1.6.0
I tried with the virtualenv and without them
I installed Python from the windows store.
From their installation guide and your requirements use:
pip install pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu102_pyt190/download.html
Specified package cannot be installed via pip, because not supported on my os(Windows 10). This can be seen on the page with the version and available files for download of the required package.

Why does this `pip install` command fail?

Background: I first published this package on PyPi in January 2021. However, the following pip install command now fails when I run it on a Linode VPS:
$ pip install django-simplecms
ERROR: Could not find a version that satisfies the requirement django-simplecms (from versions: none)
ERROR: No matching distribution found for django-simplecms
When I run it from my home computer, it installs the package successfully. In both cases I am using pip version 21.1.3 (latest) in a freshly made virtualenv. How could this be?
Don't ask me why, but the following command bypasses the problem:
pip install -i https://pypi.org/pypi django-simplecms
According to pip's documentation, the -i, --index-url argument is used to specify the index and defaults to https://pypi.org/simple. When I changed this to https://pypi.org/pypi the package could be installed.
I guess my package is listed on PyPI Warehouse and not on PyPI Simple?

pip install scipy==1.4.1 on mac os

I have created a new virtual environment with nothing else in it and I try to install
pip install scipy==1.4.1
However this returns the following error
ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly
This has been solved before by running
pip install --upgrade pip
However this does not work for me and I get the same error as before. If however I try and install the latest version of scipy there are no issues. Does anyone know a way around this? Maybe I need a less up to date version of python but I am really not sure.
Probably your python version is too new for this specific scipy version, use a earlier python version to solve the problem.
Install a specific python version (i.e. 3.7.4) from https://www.python.org/downloads/
Create virtual environment with pipenv:
pipenv shell --python 3.7.4
(and activate virtual environment)
Install scipy==1.4.1

Python 3.2.2 [2018]: Cannot install Pip 7.1.2 (No matching distribution found for 7.1.2)

I'm sure there have been others who had this same problem, but those kind of posts of been difficult to track down or don't help resolve my issue.
I'm trying to get an old Django project from 2015 up and running but it keep encountering runtime errors on the newer version of Django and Python. This project was originally built in Django 1.6.5 using Python 3.2.2, so I'm trying to recreate that dev environment so I can see the project working and hope to bring it up to standard with at least Python 3.4 and Django 1.11.
I have Python 3.2.2 installed, but I've run into problems getting Pip to install. I'm aware that Pip wasn't bundled with Python until 3.3, so I'm trying to install it myself using get-pip from https://bootstrap.pypa.io/3.2/get-pip.py. When I execute this script it returns an error.
PS F:\temp> python get-pip.py 7.1.2
Collecting 7.1.2
Could not find a version that satisfies the requirement 7.1.2 (from versions: )
No matching distribution found for pip 7.1.2
I found this post (Install pip<v8 in python3.2) that led me to bootstrap.pypa.io, but the solutions there isn't helping.
Am I installing pip 7.1.2 correctly, or does it just flat out not exist anymore in 2018?
setuptools dropped support for Python 3.2 at version 30.0 so first thing is to downgrade setuptools:
pip install -U 'setuptools<30`
Then download wheel for version 7.1.2 and install it:
pip install -U pip-7.1.2-py2.py3-none-any.whl
If that still doesn't work: download source code, untar the archive and run
python setup.py install

Categories