繁体   English   中英

我如何在 linux ubuntu 中安装 python3 线程模块

[英]How do i install python3 threading module in linux ubuntu

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

  Could not find a version that satisfies the requirement threading (from versions: )

没有找到适合线程的匹配分布我已经尝试过这些来安装:

pip3 install threading
pip3 install thread
python3 -m pip install threading
python3 -m pip install thread
sudo apt-get install python3-threading
sudo apt-get install python3-thread

我已经尝试过这些。前四个发生的是:

Could not find a version that satisfies the requirement thread (from versions: )
No matching distribution found for thread

和最后两个

Reading package lists... Done
Building dependency tree
Reading state information... Done E: Unable to locate package python3-threading(or thread)
我可以做什么来安装该模块。

你可以运行:

pip install thread6

pip 是 python 的包管理器,用于安装 python 包或模块。 请注意,您的系统上可能还有 python2.x,并且可能会使用此命令调用 pip v2。 为了安全起见,运行:

pip3 install thread6

如果您安装 thread6,您将能够导入线程

暂无
暂无

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

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