ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

python38安装jsonpath失败问题解决

2022-07-08 12:33:59  阅读:339  来源: 互联网

标签:com 0.82 jsonpath error pip python38 安装


前言

在linux 上安装了python3.8.5环境,pip安装jsonpath的时候一直无法安装成功

遇到问题

运行环境:linux
python环境:3.8.5
pip安装jsonpath

# pip3 install jsonpath
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Requirement already satisfied: jsonpath in /root/python3/lib/python3.6/site-packages (0.82)
You are using pip version 18.1, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@iZ2vchn8sk983jm605yhshZ hrun2_web]# pip38 install jsonpath
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting jsonpath
  Using cached http://mirrors.cloud.aliyuncs.com/pypi/packages/5f/c0/b54189dfe62f1a93ba294ab53508a81d440fc63adff253db369f557a996a/jsonpath-0.82.tar.gz (9.6 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

一直无法安装成功

解决办法

可以先下载安装包到本地,在本地解压安装

wget http://www.ultimate.com/phil/python/download/jsonpath-0.82.tar.gz

解压文件

tar -xvf jsonpath-0.82.tar.gz 

用setup.py安装

# cd jsonpath-0.82
# python38 setup.py install

show查看安装成功

# pip38 show jsonpath
Name: jsonpath
Version: 0.82
Summary: An XPath for JSON
Home-page: http://www.ultimate.com/phil/python/#jsonpath
Author: Phil Budne
Author-email: phil@ultimate.com
License: MIT
Location: /root/python3.8/lib/python3.8/site-packages
Requires: 
Required-by: 

标签:com,0.82,jsonpath,error,pip,python38,安装
来源: https://www.cnblogs.com/yoyoketang/p/16457801.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有