简体   繁体   English

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

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

When i try to install to threading module in python3 that error occurs:当我尝试在 python3 中安装到线程模块时发生错误:

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

No matching distribution found for threading I have been tried these for installing :没有找到适合线程的匹配分布我已经尝试过这些来安装:

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

I've been tried these.And first four occurs that:我已经尝试过这些。前四个发生的是:

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

and last two和最后两个

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

You can run:你可以运行:

pip install thread6

pip is a package manager for python and is used for installing python packages or modules. pip 是 python 的包管理器,用于安装 python 包或模块。 Be aware that you might have python2.x also on your system and pip v2 might be invoked with this command.请注意,您的系统上可能还有 python2.x,并且可能会使用此命令调用 pip v2。 To be safe, run:为了安全起见,运行:

pip3 install thread6

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

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

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