title: How to fix "No matching distribution found for {package name}" when installing own package from test.pypi
body: <p>When I push my python package to test.pypi.org I am unable to install the package on both a different machine and a different virtual environment. I'm getting errors saying there is no distributions for the dependencies for my package and and error message saying that no version to satisfy requirement was found.</p>
  
  <p>I've tried to parse my requirements.txt in my setup.py file and then run <code>python setup.py sdist bdist_wheel</code> and <code>twine upload --repository-url https://test.pypi.org/legacy/ dist/*</code> to build and upload it to test.pipy.org but the problem still persists.</p>
  
  <p>My setup.py looks like this</p>
  
  <pre class="lang-py prettyprint-override"><code>...
  
  
  dependencies=''
  with open("requirements.txt","r") as f:
          dependencies = f.read().splitlines()
  
  
  setup(
      name="FlagWaver",
      version="0.0.54",
      description=DESCRIPTION,
      long_description = LONG_DESCRIPTION,
      long_description_content_type = "text/markdown",
      url="https://github.com/ShahriyarShawon/flag-wave",
      author="Shahriyar Shawon",
      author_email="ShahriyarShawon321@gmail.com",
      license="Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International",
      packages = [
          "FlagWaver"
      ],
      classifiers = [
          "Programming Language :: Python :: 3"
      ],
      install_requires = dependencies
  
  )
  </code></pre>
  
  <p>And I run this bash script to build and upload </p>
  
  <pre class="lang-sh prettyprint-override"><code>#!/bin/zsh
  
  pipenv shell
  python setup.py sdist bdist_wheel
  twine upload --repository-url https://test.pypi.org/legacy/ dist/*
  </code></pre>
  
  <p>My requirements.txt looks like this</p>
  
  <pre><code>bleach==3.1.0
  certifi==2019.6.16
  chardet==3.0.4
  cycler==0.10.0
  docutils==0.15.2
  idna==2.8
  imageio==2.5.0
  kiwisolver==1.1.0
  matplotlib==3.1.1
  numpy==1.17.0
  opencv-python==4.1.0.25
  pandas==0.25.0
  Pillow==6.1.0
  pkginfo==1.5.0.1
  Pygments==2.4.2
  pyparsing==2.4.2
  python-dateutil==2.8.0
  pytz==2019.2
  readme-renderer==24.0
  requests==2.22.0
  requests-toolbelt==0.9.1
  six==1.12.0
  tqdm==4.32.2
  twine==1.13.0
  urllib3==1.25.3
  webencodings==0.5.1
  </code></pre>
  
  <p>And everythime I try to run <code>pip install -i https://test.pypi.org/simple/ FlagWaver</code> (this is how test.pypi told me to install my package)
  It seems to always pick a different dependency to complain about</p>
  
  <p>I'm expecting to successfully install my package with all the dependencies listed in the requirements.txt while also being able to successfully create a pipfile.lock file. Instead I get error messages like </p>
  
  <pre class="lang-py prettyprint-override"><code>ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.0.25 (from FlagWaver) (from versions: none)
  ERROR: No matching distribution found for opencv-python==4.1.0.25 (from FlagWaver)
  </code></pre>
  
  <p><strong>NOTE:</strong> opencv-python can be replaced with just about any other dependency listed it the requiremnets.txt file</p>