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

I am trying to install TensorFlow using pip:

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

Solution: 

Install TensorFlow using URL

For MAC:

$ python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

If you are using Any other OS then change URL. you can get URL from here.

Stack Trace:

$ python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

Collecting tensorflow==1.12.0 from https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

  Downloading https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl (62.0MB)

    100% |████████████████████████████████| 62.0MB 384kB/s

Collecting astor>=0.6.0 (from tensorflow==1.12.0)

  Using cached https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whl

Collecting protobuf>=3.6.1 (from tensorflow==1.12.0)

  Downloading https://files.pythonhosted.org/packages/18/e7/785830a65d1f1faba7dccfa8314f7afded1db8cc2860218226ba4b3f6150/protobuf-3.6.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (1.2MB)

    100% |████████████████████████████████| 1.2MB 1.7MB/s

Requirement already satisfied, skipping upgrade: six>=1.10.0 in /Users/admin/anaconda3/lib/python3.7/site-packages (from tensorflow==1.12.0) (1.11.0)

Collecting tensorboard<1.13.0,>=1.12.0 (from tensorflow==1.12.0)

  Using cached https://files.pythonhosted.org/packages/e0/d0/65fe48383146199f16dbd5999ef226b87bce63ad5cd73c840cf722637969/tensorboard-1.12.0-py3-none-any.whl

Collecting gast>=0.2.0 (from tensorflow==1.12.0)

Collecting keras-preprocessing>=1.0.5 (from tensorflow==1.12.0)

  Using cached https://files.pythonhosted.org/packages/fc/94/74e0fa783d3fc07e41715973435dd051ca89c550881b3454233c39c73e69/Keras_Preprocessing-1.0.5-py2.py3-none-any.whl

Collecting termcolor>=1.1.0 (from tensorflow==1.12.0)

Collecting grpcio>=1.8.6 (from tensorflow==1.12.0)

  Downloading https://files.pythonhosted.org/packages/e8/95/537181f499764f40ef64c3ade1c501927ecea73e507fc514bc8ca4b343d0/grpcio-1.17.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.8MB)

    100% |████████████████████████████████| 1.8MB 3.5MB/s

Requirement already satisfied, skipping upgrade: numpy>=1.13.3 in /Users/admin/anaconda3/lib/python3.7/site-packages (from tensorflow==1.12.0) (1.15.4)

Collecting absl-py>=0.1.6 (from tensorflow==1.12.0)

  Downloading https://files.pythonhosted.org/packages/0c/63/f505d2d4c21db849cf80bad517f0065a30be6b006b0a5637f1b95584a305/absl-py-0.6.1.tar.gz (94kB)

    100% |████████████████████████████████| 102kB 2.7MB/s

Collecting keras-applications>=1.0.6 (from tensorflow==1.12.0)

  Using cached https://files.pythonhosted.org/packages/3f/c4/2ff40221029f7098d58f8d7fb99b97e8100f3293f9856f0fb5834bef100b/Keras_Applications-1.0.6-py2.py3-none-any.whl

Requirement already satisfied, skipping upgrade: wheel>=0.26 in /Users/admin/venvseq/lib/python3.7/site-packages (from tensorflow==1.12.0) (0.32.3)

Requirement already satisfied, skipping upgrade: setuptools in /Users/admin/venvseq/lib/python3.7/site-packages (from protobuf>=3.6.1->tensorflow==1.12.0) (40.6.3)

Requirement already satisfied, skipping upgrade: werkzeug>=0.11.10 in /Users/admin/anaconda3/lib/python3.7/site-packages (from tensorboard<1.13.0,>=1.12.0->tensorflow==1.12.0) (0.14.1)

Collecting markdown>=2.6.8 (from tensorboard<1.13.0,>=1.12.0->tensorflow==1.12.0)

  Using cached https://files.pythonhosted.org/packages/7a/6b/5600647404ba15545ec37d2f7f58844d690baf2f81f3a60b862e48f29287/Markdown-3.0.1-py2.py3-none-any.whl

Requirement already satisfied, skipping upgrade: h5py in /Users/admin/anaconda3/lib/python3.7/site-packages (from keras-applications>=1.0.6->tensorflow==1.12.0) (2.8.0)

Building wheels for collected packages: absl-py

  Running setup.py bdist_wheel for absl-py ... done

  Stored in directory: /Users/admin/Library/Caches/pip/wheels/18/ea/5e/e36e1b8739e78cd2eba0a08fdc602c2b16a4b263912af8cb64

Successfully built absl-py

Installing collected packages: astor, protobuf, grpcio, markdown, tensorboard, gast, keras-preprocessing, termcolor, absl-py, keras-applications, tensorflow

  Found existing installation: protobuf 3.1.0

    Uninstalling protobuf-3.1.0:

      Successfully uninstalled protobuf-3.1.0

  Found existing installation: tensorflow 0.12.0

    Uninstalling tensorflow-0.12.0:

      Successfully uninstalled tensorflow-0.12.0

Successfully installed absl-py-0.6.1 astor-0.7.1 gast-0.2.0 grpcio-1.17.0 keras-applications-1.0.6 keras-preprocessing-1.0.5 markdown-3.0.1 protobuf-3.6.1 tensorboard-1.12.0 tensorflow-1.12.0 termcolor-1.1.0