Skip to content Skip to sidebar Skip to footer

Unittest Installation Error Could Not Find A Version That Satisfies The Requirement

Could someone please help me with this error message: Could not find a version that satisfies the requirement unittest I installed the latest Python and PyCharm and try to install

Solution 1:

If you tried this:

$pipinstallunittestCollectingunittestCouldnotfindaversionthatsatisfiestherequirementunittest(fromversions:)Nomatchingdistributionfoundforunittest

It's normal to have an error because unittest is not a valid package on Pypi. The only distributable is unittest2-0.0.0.tar.gz but the name is not correct, it should be unittest-0.0.0.tar.gz (without "2"). In fact I think it's an error and if you want to use this one you need to install unittest2 (which is a backport of unittest for Python 2.6).

But unittest is a standard module, which you don't need to install:

$ python -m unittest

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK

Post a Comment for "Unittest Installation Error Could Not Find A Version That Satisfies The Requirement"