Search code examples
pythonpython-3.xpippyenv

Pip version error when installing package even though pip has been updated


I'm gertting this error when I try to install dateutil:

Collecting dateutil

  Could not find a version that satisfies the requirement dateutil (from versions: )
No matching distribution found for dateutil
You are using pip version 10.0.1, however version 19.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

If I run pip -V I get this:

pip 19.0.1 from /Users/me/.pyenv/versions/3.7.2/lib/python3.7/site-packages/pip (python 3.7)

Have I configured something worng? How do I get dateutil insatalled?


Solution

  • Correct package:

    pip install python-dateutil