Python 找不到满足要求线程的版本(来自版本:),找不到线程的匹配分发

Python 找不到满足要求线程的版本(来自版本:),找不到线程的匹配分发,python,Python,我用python 3.6.2编写了我的程序,我希望通过以下方式安装线程包: pip install thread 但我得到的错误是: Could not find a version that satisfies the requirement thread (from versions: ) No matching distribution found for thread 也可以使用下面的命令: pip3 install thread 但再次得到错误顶部。 如何修复它?就$pip而言

我用python 3.6.2编写了我的程序,我希望通过以下方式安装线程包:

pip install thread
但我得到的错误是:

Could not find a version that satisfies the requirement thread (from versions: )
No matching distribution found for thread
也可以使用下面的命令:

pip3 install thread 
但再次得到错误顶部。
如何修复它?

$pip
而言,它是一个搜索公共开源软件包的软件包管理器,但没有软件包名称


对于Python3线程,您可以遵循这个简单的

模块
线程
是一个内置模块:无需导入。
此外,在Python 3中,线程模块已重命名为_thread

如果您想在Python3中使用模块线程,只需在脚本开始处导入线程即可

例如:

import _thread
t_pid = _thread.start_new_thread( job, () )
更多信息:


没有包名thread Python 3已经附带了线程模块,这就是您想要的吗?