How to fix ERROR: Could not find a version that satisfies the requirement re (from versions: none)

ERROR: Could not find a version that satisfies the requirement re (from versions: none)
ERROR: No matching distribution found for re

This error can happen for many reasons. Here are the most common ones:

  1. Installing from requirements.txt file without adding the -r option.
  2. You mistyped the package name (not found in PyPI).
  3. The package doesn’t support your operating system.
  4. Your pip is outdated.
  5. Your Python version is not supported.

PyPI · The Python Package Index

My suggestion is that you can search you targeted package in the foregoing website to identify its existence.

The reason why I encouter the problem? => Since I can't find 're' in PyPI, then I find re is in the Python Standard Library

AM I STUPID? emem...

But I can list some possibilities for you to solve you unique problem.

How to update pip:

python -m pip install --upgrade pip

# For python 3:
python3 -m pip install --upgrade pip

# alternative for Windows
py -m pip install --upgrade pip

# alternative for Ubuntu/Debian
sudo apt-get update && apt-get upgrade python-pip

# alternative for Red Hat / CentOS / Fedora
sudo yum install epel-release
sudo yum install python-pip
sudo yum update python-pip

你可能感兴趣的:(linux,centos,运维)