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 缓存,然后再次尝试安装。如果问题仍然持续存在,你可能需要查看详细的错误信息或者检查你的系统环境以寻找更多的线索来解决问题。


相关文章
|
10小时前
|
Linux Docker 容器
9. 同步执行Linux多条命令
9. 同步执行Linux多条命令
|
12小时前
|
Java
|
10小时前
|
消息中间件 Kafka Go
module declares its path as: github.com/IBM/sarama but was required as: gith
module declares its path as: github.com/IBM/sarama but was required as: gith
|
12小时前
|
Docker 容器
6-16|docker怎么把容器内的文件传出来
6-16|docker怎么把容器内的文件传出来
|
10小时前
|
Go
mutex := rs.NewMutex(mutexname) // 对key进行 if err := mutex.Lock(); err != nil { pani
mutex := rs.NewMutex(mutexname) // 对key进行 if err := mutex.Lock(); err != nil { pani
|
10小时前
|
数据库 Python
Traceback(most recent call last):File "main.py", line 4l,in<module>alueError: sleep length must be n
Traceback(most recent call last):File "main.py", line 4l,in<module>alueError: sleep length must be n
|
10小时前
|
索引 Python
File "site-packages\pandas\core\indexing.py", line File "site-packages\pandas\core\indexing.py", l
File "site-packages\pandas\core\indexing.py", line File "site-packages\pandas\core\indexing.py", l
|
12小时前
|
前端开发 Python
6-15|如何清空画布
6-15|如何清空画布
|
10小时前
|
存储 Go
go语言字符串变小写
go语言字符串变小写
|
10小时前
|
SQL Java 关系型数据库
删除几条数据怎么搞
删除几条数据怎么搞