python - 我无法在 Windows 7 上安装 python 线程库

标签 python multithreading python-2.7

我已经使用“pip install 'library name'”命令在我的计算机和其他库上成功安装了 pip。我得到了我的项目所需的所有库,除了“线程”!我在网上找不到任何关于它的信息,问过其他人,但没有人能提供帮助。任何帮助都很感激。我有 Python 2.7.9 版本。

这是我得到的错误

enter image description here

最佳答案

错误是提示它找不到这个库,这是有道理的。因为这个threading已经在python的标准库中了,你不需要手动安装它。

试试看:

import threading

它应该可以正常工作。

关于python - 我无法在 Windows 7 上安装 python 线程库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29996824/

相关文章:

python - 在 Pandas 中分配组的第一行

python - 类型错误 : must be real number, 不是 str

python - 我如何使用 Shapely 检测所有距离小于 N 米的点?

python - 电子邮件解析 : TypeError: parse() takes at least 2 arguments (2 given)

c++ - 有两个线程的运行时间与一个线程的运行时间没有改善

python - 比较两个列表中的元素时找到较小的子集

python - 使用元组中的唯一键和各种列表值创建字典

c - 为什么 pthread_cond_signal 有时不起作用?

c - 当线程释放它的资源

Python-Twilio 不发送带有测试凭据的短信。