简体   繁体   English

如何为 Python 3.6 版安装时间包

[英]How to install time package for Python version 3.6

How to download "time" package for python 3.6.如何下载 python 3.6 的“时间”包。 I was trying to install it for weeks but I always get the same error massage.我试图安装它几个星期,但我总是得到同样的错误消息。 Can someone explain me what am I doing wrong.有人可以解释一下我做错了什么。

time is included in the standard library. time包含在标准库中。 All you need to do is import time .您需要做的就是import time I would also highly recommend updating your Python version to a more recent version like 3.10.4 .我还强烈建议将您的 Python 版本更新到更新的版本,例如3.10.4

It's included in python's standard library, no reason to install or download.它包含在 python 的标准库中,无需安装或下载。 You can just import it like so:您可以像这样导入它:

import time

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

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