root@localhost:~/ChatLearning.Linux# python3 Chatmain.py
Traceback (most recent call last):
File "Chatmain.py", line 11, in <module>
import ChatAllfind
File "/root/ChatLearning.Linux/ChatAllfind.py", line 7, in <module>
from qcloud_cos import CosConfig, CosS3Client
ModuleNotFoundError: No module named 'qcloud_cos'
root@localhost:~/ChatLearning.Linux# pip install qcloud_cos
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting qcloud_cos
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ec/ee/0f314f3e4d97c6b08193422e2436f5fc0af75523d2a7f29e587b73a2b65b/qcloud_cos-3.3.6.tar.gz (10 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]
Sorry, only python 2.6 or 2.7 is supported
[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.
报错如下:
Linux用户则使用python运行Chatmain.py脚本 (python版本需为3.5以上)
是哪里出问题了呢?