unittest安装报错找不到满足要求的版本
unittest installation error Could not find a version that satisfies the requirement
有人可以帮我解决这个错误信息吗:
Could not find a version that satisfies the requirement unittest
我安装了最新的 Python
和 PyCharm
并尝试安装软件包 unittest
但出现上述错误。到目前为止,我对 Python
的体验有点像 dll 地狱...
如果你试过这个:
$ pip install unittest
Collecting unittest
Could not find a version that satisfies the requirement unittest (from versions: )
No matching distribution found for unittest
出现错误是正常的,因为 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
(这是 Python 2.6 的 unittest
的反向移植)。
但是unittest
是标准模块,不需要安装:
$ python -m unittest
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
有人可以帮我解决这个错误信息吗:
Could not find a version that satisfies the requirement unittest
我安装了最新的 Python
和 PyCharm
并尝试安装软件包 unittest
但出现上述错误。到目前为止,我对 Python
的体验有点像 dll 地狱...
如果你试过这个:
$ pip install unittest
Collecting unittest
Could not find a version that satisfies the requirement unittest (from versions: )
No matching distribution found for unittest
出现错误是正常的,因为 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
(这是 Python 2.6 的 unittest
的反向移植)。
但是unittest
是标准模块,不需要安装:
$ python -m unittest
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK