(spider) C:\Users\DELL\Desktop\spider\clinical\us>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple rediscluster Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting rediscluster Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0a/2c/0f2ab19a4f20ea7bd2dbb4032fc332894feabdb0346353fbd9cbdb0c152d/rediscluster-0.5.3.tar.gz (9.9 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [8 lines of output] Traceback (most recent call last): File "<string>", line 36, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "C:\Users\DELL\AppData\Local\Temp\pip-install-8e401mo_\rediscluster_fa93c49dabad4e31bc2b9a6569cf0ad8\setup.py", line 2, in <module> from rediscluster import __version__ File "C:\Users\DELL\AppData\Local\Temp\pip-install-8e401mo_\rediscluster_fa93c49dabad4e31bc2b9a6569cf0ad8\rediscluster\__init__.py", line 1, in <module> from redis.exceptions import ( ModuleNotFoundError: No module named 'redis' [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.
时间: 2024-04-13 20:26:37 浏览: 300
we.dog-master_spider_twrj.vip_http://master.we_舔王日记_tianwangriji
根据您提供的信息,安装`rediscluster`时遇到了一个错误。根据错误信息,看起来缺少了`redis`模块。`rediscluster`是一个依赖于`redis`模块的库,因此在安装`rediscluster`之前,您需要先安装`redis`模块。
您可以尝试运行以下命令来安装`redis`模块:
```shell
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple redis
```
安装完成后,再次尝试安装`rediscluster`:
```shell
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple rediscluster
```
这样应该能够成功安装 `rediscluster`。如果问题仍然存在,请提供完整的错误信息,以便我能够更好地帮助您解决问题。
阅读全文