简体   繁体   English

我试图弄清楚如何在 python 上安装这个库(时间)

[英]I'm trying to figure out how to install this lib on python (time)

im new to python and i was trying to install "time" library on python, i typed pip install time but the compiler said this我是 python 的新手,我试图在 python 上安装“时间”库,我输入了 pip 安装时间,但编译器这么说

C:\Users\Giuseppe\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.6>pip install time ERROR: Could not find a version that satisfies the requirement time (from versions: none) ERROR: No matching distribution found for time

i dont know how to resolve, can anyone help me?我不知道如何解决,有人可以帮助我吗? please be the more simple u can cause im not too good in py, as i said im new, thx to everyone!请变得更简单,你会导致我在 py 中不太好,正如我所说的,我是新手,谢谢大家!

PS the py version is 3.6 PS py版本是3.6

thx everyone, im stupid xd谢谢大家,我很傻xd

Time is a module that comes built-in with python so no need to install anything, just import it: Time 是 python 内置的一个模块,所以不需要安装任何东西,只需导入它:

import time

Time is part of the default preinstalled libraries so you shouldn't have to install it. Time 是默认预安装库的一部分,因此您不必安装它。 just use:只需使用:

import time

This should already be answered here .这应该已经在这里回答了。

Since time is part of Pythons standard library you neither need to nor can you install it via pip.由于时间是 Python 标准库的一部分,您既不需要也不能通过 pip 安装它。

暂无
暂无

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

相关问题 我是 python 的新手,我想弄清楚如何在同一行上一次打印一个字母 - I'm new to python and I am trying to figure out how to print letters one at a time on the same line 我正在尝试找出Python中的简单列表加密 - I'm trying to figure out simple list encryption in Python 我试图弄清楚如何计算在Python的字符串句子中字母大写的次数 - I'm trying to figure out how to count how many times a letter is capitalized in a string sentence in Python 我试图弄清楚如何让python将歌词简单地发布到歌曲中 - I'm trying to figure out how to get python to simply post the lyrics to a song 我试图弄清楚如何以 2 的幂为循环递增 - I'm trying to figure out how increment for loop in powers of 2 我正在试图找出如何使用带有pidgin的dbus - I'm trying to figure out how to use dbus with pidgin 我正在试图弄清楚如何将括号和短划线插入到作为输出的电话号码。 我正在使用python 3.5 - I'm trying to figure out how to insert parentheses and a dash to a phone number that is the output. I'm using python 3.5 Python彩票生成器我正在尝试弄清楚如何添加数字输入,并将它们分隔成行,并且为x数量的num long - Python Lottery generator I'm trying to figure out how to add a number input, and separate them on lines and be x amount of num long 试图为我的 python 类完成这个程序,但无法弄清楚为什么我会收到 TypeError - Trying to finish this program for my python class, but can't figure out why I'm receiving a TypeError 我试图弄清楚如何添加到字典列表中,而不是创建一个字典列表列表 - I'm trying to figure out how to add to a list of dictionaries, rather than create a list of lists of dictionaries
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM