Windows 10有JMESPath终端吗?

时间:2016-12-18 20:40:17

标签: python windows pip install jmespath

我在Windows 10机器上安装了python 3.5.2。我还在Windows命令行上使用以下命令安装了JMESPath终端:

pip install jmespath-terminal

一切顺利,已成功安装。

但是当我键入以下内容时: jpterm

它说' jpterm'不被承认。

我是否遗漏了某些内容或上述pip命令仅适用于非Windows机器?

1 个答案:

答案 0 :(得分:0)

TL; DR:目前(2017年底),Windows上根本不支持。

安装破了。您可以从项目的GitHub页面here获取jpterm.py并将其弹出到您的\pythonXX\Scripts\文件夹中。

然后你会得到这个:

Traceback (most recent call last):
  File "C:\Python36\Scripts\jpterm.py", line 239, in <module>
    sys.exit(main())
  File "C:\Python36\Scripts\jpterm.py", line 228, in main
    screen = urwid.raw_display.Screen()
  File "C:\Python36\lib\site-packages\Traceback (most recent call last):
File "C:\Python36\Scripts\jpterm.py", line 239, in <module>
sys.exit(main())
File "C:\Python36\Scripts\jpterm.py", line 228, in main
screen = urwid.raw_display.Screen()
File "C:\Python36\lib\site-packages\urwid\raw_display.py", line 85, in __init__
fcntl.fcntl(self._resize_pipe_rd, fcntl.F_SETFL, os.O_NONBLOCK)
NameError: name 'fcntl' is not defined\raw_display.py", line 85, in __init__
    fcntl.fcntl(self._resize_pipe_rd, fcntl.F_SETFL, os.O_NONBLOCK)
**NameError: name 'fcntl' is not defined**

...并在urwid项目问题(在终端中绘制“窗口”的东西)查找,你会得到这个:

https://github.com/urwid/urwid/issues/152

基本上说'urwid不支持Windows'。