2016-03-28 132 views
0

使用pip時,我似乎找不到安裝模塊「jsonpath」的正確方法。找不到python包「jsonpath」

 pip install jsonpath 

給我的古老的回報:

 Could not find a version that satisfies the requirement Jsonpath (from versions:) 
No matching distribution found for Jsonpath 

任何人誰也安裝了這個包之前,有適當的 命令?謝謝您的幫助!

回答

0

使用pip install jsonpath-rw insted的

的Windows PowerShell
版權所有(C)2009年微軟公司。版權所有。
PS C:\用戶\ ****> PIP安裝jsonpath
收集jsonpath
找不到滿足要求jsonpath版本(版本來自:)
沒有匹配的分佈發現jsonpath

PS C:\ Users \用戶****> PIP安裝jsonpath-RW
收集jsonpath-RW
下載jsonpath-RW-1.4.0.tar.gz
收集簾布層(從jsonpath-RW)
下載合股3.8.tar.gz(157kB)
100%| ################################ | 163kB 1.2MB/s
需求已滿足(使用--upgrade升級):裝飾器在c:\ python27 \ lib \ site-packages(來自jsonpath-rw)
需求已滿足(使用--upgrade升級) :六C:\ python27 \ LIB \站點包(從jsonpath-RW)
大廈輪子收集包:jsonpath-RW,厚度
運行setup.py bdist_wheel爲jsonpath-RW ...做
存儲目錄:C:\用戶\ **** \應用程序數據\本地\ PIP \緩存\車輪\ 5A \ B2 \ 15 \ 41b01c9fcbfe11c8390cd3e1bb9c02d12d22ec15e34698adcb
競選層...做
在目錄中存儲的setup.py bdist_wheel:C :\用戶\ **** \應用程序數據\本地\ PIP \緩存\車輪\ D9 \ 34 \ FE \ b9f5d00d8690911944b0c24811ed7f5fb2c5d89f9c4d6053c7
成功構建jsonpath-RW層
安裝收集包:層,jsonpath-RW
成功安裝jsonpath-RW-1.4.0合股3.8
PS C:\用戶\ ****>

+0

我已經嘗試過,但導入不會相同。它不會適用於這樣的事情:http://mikelev.in/2012/08/implementing-jsonpath-in-python-with-examples/ – EJD91

+0

您是否嘗試過xjpath?它被列爲jsonpath的替代品。還可以嘗試給出'pip search jsonpath',它將列出您可以研究並選擇安裝的可用軟件包 – 2016-03-28 16:27:01

0

也遇到同樣的問題。

您不能通過pip install jsonpath安裝jsonpath,您可以下載源代碼here並手動安裝。

看來,作者已經從pypi.python.org中刪除了所有軟件包,這就是爲什麼我們無法通過pip安裝jsonpath,您可以看到the links for jsonpath爲空。

筆者has declared

我認爲這是一個玩具

所以,我使用的jsonpath-rw而不是現在。