Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrade the Python package dateutil: Could not find a version

I tried to upgrade dateutil from 2.5.3 to the newest version 2.6.0 with pip install dateutil --upgrade, but got the issue Could not find a version.

$ pip install dateutil --upgrade Collecting dateutil   Could not find a version that satisfies the requirement dateutil (from versions: ) No matching distribution found for dateutil 

I checked the post Could not find a version that satisfies the requirement . Running pip freeze | grep dateutil got,

$ pip freeze | grep dateutil python-dateutil==2.5.3 

How do I know which version satisfies my machine? Is it possible to upgrade dateutil to the newest version?

like image 773
SparkAndShine Avatar asked Nov 25 '16 16:11

SparkAndShine


People also ask

Is dateutil included in Python?

Python 2. x has a great function called dateutil. parser which turns an ISO8601 formatted date into a python datetime value. It's not present in Python 3.

How do I upgrade pip?

Updating Pip When an update for pip is available, and you run a pip command, you will see a message that says, “You are using pip version xy. a, however version xy. b is available.” You can run “pip install --upgrade pip” to install and use the new version of pip.

How do I install an earlier version of pip?

To install a specific version of a Python package you can use pip: pip install YourPackage==YourVersion . For example, if you want to install an older version of Pandas you can do as follows: pip install pandas==1.1. 3 .


1 Answers

It is

pip install python-dateutil --upgrade 
like image 101
itzMEonTV Avatar answered Oct 16 '22 09:10

itzMEonTV