如何安装 idlelib?

问题描述 投票:0回答:2

如何在 Windows 计算机上安装

idlelib

有没有办法让我用 pip 安装它?

我在用

  • Windows 7(64 位)
  • Windows 嵌入式包(64 位)
  • 蟒蛇 3.8.9

谢谢。

因为我使用的是 Windows 嵌入式版本,所以它没有任何花哨的东西。

D:\Installed\python-3.8.9>python -m idlelib
D:\Installed\python-3.8.9\python.exe: No module named idlelib

D:\Installed\python-3.8.9>Lib\idlelib\idle.bat
The system cannot find the path specified.

D:\Installed\python-3.8.9>pip install idle3
ERROR: Could not find a version that satisfies the requirement idle3 (from versions: none)
ERROR: No matching distribution found for idle3

D:\Installed\python-3.8.9>pip install python-idlelib
ERROR: Could not find a version that satisfies the requirement python-idlelib (from versions: none)
ERROR: No matching distribution found for python-idlelib

D:\Installed\python-3.8.9>pip install idlelib
ERROR: Could not find a version that satisfies the requirement idlelib (from versions: none)
ERROR: No matching distribution found for idlelib
D:\Installed\python-3.8.9>python -m idlelib
D:\Installed\python-3.8.9\python.exe: No module named idlelib

D:\Installed\python-3.8.9>python3 -m idlelib
'python3' is not recognized as an internal or external command,
operable program or batch file.

D:\Installed\python-3.8.9>py -m idlelib
'py' is not recognized as an internal or external command,
operable program or batch file.

D:\Installed\python-3.8.9>py3 -m idlelib
'py3' is not recognized as an internal or external command,
operable program or batch file.

D:\Installed\python-3.8.9>
D:\Installed\python-3.8.9>echo %PATH%
D:\Installed\python-3.8.9\;D:\Installed\python-3.8.9\Scripts\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Installed\Execs\;D:\Installed\R-42-editor\bin\x64\;D:\Installed\poppler-0.68.0\bin\;D:\Installed\Java17\bin\
python installation pip module python-idle
2个回答
0
投票

我会向您推荐以下内容:

python -m idlelib python3 -m 空闲库 py -m 空闲库 py3 -m 空闲库 无论结果如何,请告诉我,以便我们纠正错误。


0
投票

问。如何在 Windows 计算机上安装 idlelib?

一个。从 python.org 获取标准的 3.10 或 3.11 Windows 安装程序,而不是可嵌入版本。运行。包括 py 启动器和 tkinter/IDLE 组件。

使用

py -m idlelib
从命令行启动 IDLE,或从 python 子菜单上的“开始”菜单 IDLE 条目,或从文件资源管理器右键单击 .py 文件,
Edit with IDLE
.

问。有没有办法让我用 pip 安装它?

一个。 pypi.org 上可能有 idlelib 的备用 3 方版本,但 IDLE 需要 tkinter,这需要 _tkinter,这需要安装 _tkinter 编译所针对的 tcl/tk 版本。这些都被可嵌入的python遗漏了。换句话说,您可以使用 pip 安装的 IDLE 的任何变体都要求您已经使用标准安装程序安装了 tk/tkinter/IDLE。

关于 Microsoft Store Python,我无话可说。

© www.soinside.com 2019 - 2024. All rights reserved.