【发布时间】:2018-04-02 18:31:30
【问题描述】:
我正在为我的 Python 项目创建一个 requirements.txt 文件。当有人通过pip 安装我的项目时;我希望pip 也能下载Tkinter 和time Python 模块,它们都是Python 标准库中的模块。
我使用命令 pip freeze 列出了所有当前安装的 Python 包,但是当我向下滚动到 T 部分时,我在列表。然后我尝试使用命令pip install Tkinter 通过pip 安装Tkinter,但出现以下错误:
Could not find a version that satisfies the requirement Tkinter (from versions: )
No matching distribution found for Tkinter
我也对time 做了同样的事情,得到了同样的错误。 (我正在运行 Python 3.6 和 Windows 10。)
是否有可能在pip 安装我的包时让pip 安装这些模块,还是我只需要相信因为用户安装了Python,他们也会安装Tkinter 和time ?
欢迎并感谢所有帮助!
【问题讨论】:
标签: python python-3.x tkinter pip requirements.txt