pip is unable to find the version on github - pip

I see the version is available in the github, but pip is not be able to find it
Python 3.9.1
pip 21.2.4
Question:
How to install version djangorestframework-simplejwt 4.4.0?
pip install djangorestframework-simplejwt==4.4.0
ERROR: Could not find a version that satisfies the requirement
djangorestframework-simplejwt==4.4.0 (from versions: 1.0, 1.1, 1.2, 1.2.1,
1.3, 1.4, 1.5.1, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.1, 3.0, 3.1,
3.2, 3.2.1, 3.2.2, 3.2.3, 3.3, 4.0.0, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4,
4.1.5, 4.2.0, 4.3.0, 4.5.0, 4.6.0, 4.7.0, 4.7.1, 4.7.2, 4.8.0)
ERROR: No matching distribution found for djangorestframework-simplejwt==4.4.0

https://pypi.org/project/djangorestframework-simplejwt/4.4.0/
Requires: Python >=3.6, <3.9
Doesn't work with Python 3.9. Either downgrade Python or use a later version of djangorestframework-simplejwt. Starting with version 4.5:
Requires: Python >=3.7

Related

How can I run discord py 2.0 file on heroku

I am getting error, while trying to run discord py 2.0 file on heroku:
ERROR: Could not find a version that satisfies the requirement discord.py==2.0.0a4422+gdc50736b (from versions: 0.1.0, 0.2.0, 0.2.1,
0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.14.2, 0.14.3, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.16.6, 0.16.7, 0.16.8, 0.16.9, 0.16.10, 0.16.11, 0.16.12, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3)
ERROR: No matching distribution found for discord.py==2.0.0a4422+gdc50736b
I try
git+git://github.com/Rapptz/discord.py
It doesn't work for me.
But when I try
git+https://github.com/Rapptz/discord.py
Which is written in requirements.txt The same as when I used "pip install", it can be deployed on Heroku.
Remove the discord.py==2.0.0a4422+gdc50736b. Specify the Github link with the commit in your requirements.txt instead:
git+git://github.com/Rapptz/discord.py#dc50736bfc3340d7b999d9f165808f8dcb8f1a60
However, I suggest instead of specifying that particular commit, you just specify the general repo so your discord library will be up-to-date with Rapptz's repo:
git+git://github.com/Rapptz/discord.py
Reference:
Git-backed distributions

NuGet package change to specific Major/Minor but latest patch

I have a scenario where I need a way from the command line to change the version of NuGet package a specific major and minor version but the latest patch version.
i.e if I had the following versions:
1.2.3,
1.2.4,
1.2.5,
1.3.3,
1.3.4,
1.3.5,
2.1.3,
2.1.4,
2.1.5
And I wanted to swap the package version to 1.2 from 2.1 I want it to pick up the 1.2.5 version, not the 1.2.3 or 1.2.4 versions.
I found that the dotnet add package command sort of works:
dotnet add package PackageName --version 1.2
This would change the version to 1.2 without an issue, even the package is already in the project, the only issue is it's using the smallest patch version, in this case 1.2.3 instead of 1.2.5.
Is there a good way for me to do the above command but have it pick up the latest patch version?
I used --version '1.2.*,it should work

How to install latest versions of packages on Google Colab (exists on PyPI, but missing on Colab index)?

I need to perform some preprocessing that depends on the latest versions of certain PyPI packages. For example: scipy version 1.8.0. This package version has been released on PyPI on February 5th 2022.
I'm trying to pip install this package on Google Colab via:
# Specifying the index explicitly to ensure we're using PyPI directly.
!pip install -i https://pypi.python.org/simple scipy==1.8.0
Unfortunately this errors with:
Looking in indexes: https://pypi.python.org/simple
ERROR: Could not find a version that satisfies the requirement scipy==1.8.0 (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0b1, 1.0.0rc1, 1.0.0rc2, 1.0.0, 1.0.1, 1.1.0rc1, 1.1.0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0rc1, 1.4.0rc2, 1.4.0, 1.4.1, 1.5.0rc1, 1.5.0rc2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0rc1, 1.6.0rc2, 1.6.0, 1.6.1, 1.6.2, 1.6.3, 1.7.0rc1, 1.7.0rc2, 1.7.0, 1.7.1, 1.7.2, 1.7.3)
ERROR: No matching distribution found for scipy==1.8.0
Even though scipy 1.8.0 clearly is on the https://pypi.python.org/simple index, I'm not seeing it Colab, and the latest available version is several months old.
Is there a way to pip install up-to-date package versions on Colab?
If you look at the files here
https://pypi.org/project/scipy/1.8.0/#files
You'll see they are only available for Python 3.8 and above.
So You'll either need to upgrade Python to 3.8 or compile scipy 1.8.0 from source.

Why is the latest version of Ruby 1.9.3 in Ubuntu using apt-get?

In the package manager the latest version of ruby is 1.9.3 whereas the latest version of Ruby is 2.4.0 (stable).
To get the latest version you have to get the source and build it on your machine. Why so?
http://packages.ubuntu.com/yakkety/ruby says that the version of Ruby used for yakkety is Ruby 2.3, based on it relying on the package Ruby2.3.

Install beta version of bourbon with bower

Hi there I am new to bower and would like to install the beta version of bourbon but get the latest stable version instead.
Command executed:
bower install thoughtbot/bourbon
and got:
bourbon#4.2.7 bower_components/bourbon
Looking at the bower.json in https://github.com/thoughtbot/bourbon I can see the version being "5.0.0-beta.7" which I would like to install. I am doing something wrong?
Executing:
bower install thoughtbot/bourbon#5.0.0-beta.7
displays:
Additional error details:
Available versions in https://github.com/thoughtbot/bourbon.git:4.2.7, 4.2.6, 4.2.5, 4.2.4, 4.2.3, 4.2.2, 4.2.1, 4.2.0, 4.1.1, 4.1.0, 4.0.2, 4.0.1, 4.0.0, 4.0.0-rc.2, 4.0.0-rc.1, 3.2.4, 3.2.3, 3.2.2, 3.2.1, 3.2.0, 3.2.0-beta.2, 3.2.0-beta.1, 3.1.8, 3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0, 3.0.1, 3.0.0, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 1.4.0, 1.3.6, 1.3.5, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.0, 1.1.0, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 0.2.1, 0.2.0, 0.1.9, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0, 0.0.9, 0.0.8, 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1
Bower will always default to installing the current stable version, which at the time of this writing is 4.2.7. To install a pre-release, like a beta, you’ll need to specify the version:
bower install bourbon#v5.0.0.beta.7
Reference: https://bower.io/docs/api/#install

Resources