简体   繁体   English

当我尝试安装到 python3 中的线程模块时,会发生错误:

[英]When I try to install to thread module in python3 that error occurs:

ERROR: Could not find a version that satisfies the requirement thread ERROR: No matching distribution found for thread错误:找不到满足要求线程的版本错误:找不到线程的匹配分布

The thread module has been changed to _thread .线程模块已更改为_thread You don't need to pip install this module.您不需要 pip 安装此模块。

The thread module has been renamed to _thread in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3;在 Python 3 中,线程模块已重命名为 _thread。当您将源转换为 Python 3 时,2to3 工具将自动调整导入; however, you should consider using the high-level threading module instead.但是,您应该考虑改用高级线程模块。 for python install threading module:对于 python 安装线程模块:

pip3 install thread6

for more information go to thread6 · PyPI更多信息 go 到thread6 · PyPI

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM