簡體   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