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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29996824/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 05:16:04  来源:igfitidea点击:

I cannot install python threading library on my Windows 7

pythonmultithreadingpython-2.7

提问by Helena

I have successfully installed pip on my computer and other libraries using "pip install 'library name'" command. I got all the libraries needed for my project except for "threading"!I could not find anything online about it and asked others and no one could help. Any help is appreciate it. I have Python 2.7.9 version.

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

Here is the error I am getting

这是我得到的错误

enter image description here

在此处输入图片说明

回答by skyline75489

The error is complaining that it can't find this lib, which makes sense. Because this threadingis already in python's standard library, You don't need to manually install it.

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

Just try:

你试一试:

import threading

It should work fine.

它应该可以正常工作。

回答by abhinavsagar

just type pip install thread

只需输入 pip install thread

Note thread cant be install in versions less than 3.0

注意线程不能安装在低于 3.0 的版本中