Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-npf9报错

简介: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-npf9报错

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-npf9报错

Collecting grpcio>=1.27.1 (from etcd3==0.12.0)

Downloading https://pypi.tuna.tsinghua.edu.cn/packages/81/9a/6b33e8d15850356772f0ee6489bc8346a7aa90f0c86733283e139740865e/grpcio-1.48.2.tar.gz (22.0MB)

  100% |████████████████████████████████| 22.0MB 68kB/s  

  Complete output from command python setup.py egg_info:

  Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "/tmp/pip-build-npf95lhy/grpcio/setup.py", line 263, in <module>

      if check_linker_need_libatomic():

    File "/tmp/pip-build-npf95lhy/grpcio/setup.py", line 223, in check_linker_need_libatomic

      stderr=PIPE)

    File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__

      restore_signals, start_new_session)

    File "/usr/lib64/python3.6/subprocess.py", line 1278, in _execute_child

      executable = os.fsencode(executable)

    File "/usr/lib64/python3.6/os.py", line 800, in fsencode

      filename = fspath(filename)  # Does type-checking of `filename`.

  TypeError: expected str, bytes or os.PathLike object, not list

 

  ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-npf9

报错

这个错误看起来是在尝试安装 `etcd3` 的过程中,它需要依赖于 `grpcio`,但在安装 `grpcio` 时出现了问题。错误信息表明在 `grpcio` 的安装脚本中发生了问题。

解决这个问题的一种方法是更新 `grpcio` 到最新版本,因为可能有一些 bug 已经在较新的版本中修复了。你可以使用以下命令尝试更新 `grpcio`:

```

pip install --upgrade grpcio

```

如果这仍然无法解决问题,你可以尝试安装较低版本的 `grpcio`,例如 1.27.1,因为 `etcd3` 可能需要特定版本的 `grpcio`。你可以使用以下命令安装1.27.1版本:

```

pip install grpcio==1.27.1

```

然后再尝试安装 `etcd3`。

如果问题仍然存在,请确保你的 Python 环境和依赖库都是最新的,并且尝试清除 pip 缓存,然后再次尝试安装。如果问题仍然持续存在,你可能需要查看详细的错误信息或者检查你的系统环境以寻找更多的线索来解决问题。


相关文章
|
3月前
|
存储 监控 API
【Azure App Service】分享使用Python Code获取App Service的服务器日志记录管理配置信息
本文介绍了如何通过Python代码获取App Service中“Web服务器日志记录”的配置状态。借助`azure-mgmt-web` SDK,可通过初始化`WebSiteManagementClient`对象、调用`get_configuration`方法来查看`http_logging_enabled`的值,从而判断日志记录是否启用及存储方式(关闭、存储或文件系统)。示例代码详细展示了实现步骤,并附有执行结果与官方文档参考链接,帮助开发者快速定位和解决问题。
123 23
|
7月前
|
数据采集 网络安全 Python
【Python】怎么解决:urllib.error.HTTPError: HTTP Error 403: Forbidden
解决 `urllib.error.HTTPError: HTTP Error 403: Forbidden`错误需要根据具体情况进行不同的尝试。通过检查URL、模拟浏览器请求、使用代理服务器和Cookies、减慢请求速度、使用随机的User-Agent以及使用更加方便的 `requests`库,可以有效解决此类问题。通过逐步分析和调试,可以找到最合适的解决方案。
517 18
|
7月前
|
数据采集 数据安全/隐私保护 Python
【Python】已解决:urllib.error.HTTPError: HTTP Error 403: Forbidden
通过上述方法,可以有效解决 `urllib.error.HTTPError: HTTP Error 403: Forbidden` 错误。具体选择哪种方法取决于服务器对请求的限制。通常情况下,添加用户代理和模拟浏览器请求是最常见且有效的解决方案。
468 10
|
9月前
|
JSON 并行计算 数据格式
Python Error 汇总
本文汇总了Python编程中常见的错误及其解决办法,包括导入错误、类型错误、运行时错误等,并提供了详细的解决方案。
497 0
Python Error 汇总
|
9月前
|
并行计算 Python
Python错误笔记(一):CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up env
这篇文章讨论了CUDA初始化时出现的未知错误及其解决方案,包括重启系统和安装nvidia-modprobe。
1206 0
|
9月前
|
自然语言处理 搜索推荐 程序员
【Python】如何使用pip,安装第三方库和生成二维码、操作Excel
【Python】如何使用pip,安装第三方库和生成二维码、操作Excel
200 0
|
10月前
|
机器学习/深度学习 Linux 开发者
Python必备工具:pip的安装与管理
Python必备工具:pip的安装与管理
1121 0
|
自然语言处理 安全 Shell
【Python】已解决:Python pip正确安装pyhanlp库步骤
【Python】已解决:Python pip正确安装pyhanlp库步骤
503 2
|
开发者 Python
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
915 0
【Python】已解决:(Python3中pip无法安装urllib报错问题) ERROR: Could not find a version that satisfies the requireme
|
11月前
|
存储 Linux 网络安全
常用的 Python 工具:使用 virtualenv、使用 Pip 进行安装和管理包
常用的 Python 工具:使用 virtualenv、使用 Pip 进行安装和管理包
88 0

推荐镜像

更多