ZHO-ZHO-ZHO / ComfyUI-YoloWorld-EfficientSAM

Unofficial implementation of YOLO-World + EfficientSAM for ComfyUI
GNU General Public License v3.0
618 stars 57 forks source link

pytyon版本为3.12不能运行的看过来 #70

Open shen774411223d opened 4 months ago

shen774411223d commented 4 months ago

issue为解决 python 3.12无法安装 pip install的问题。主要错误为

ModuleNotFoundError: No module named 'distutils'

这个错误经查阅是3.12版本移除了这个包,导致3.12版本安装错误。

解决办法

将python版本降低到支持distutils的版本,还是经过查阅 3.11支持为了稳妥我选择了3.10版本,退回到3.10后 再次执行pip install 安装成功

没有翻墙或者翻墙速度较慢的安装时可能会超时使用如下命令替换:

阿里镜像源安装

pip install -i https://mirrors.aliyun.com/pypi/simple -r requirements.txt

如下翻译为机器翻译,可能会不准确请谅解

The following translation is machine translation and may not be accurate. Please understand.

This issue is to solve the problem that pip install cannot be installed in python 3.12. The main error is

ModuleNotFoundError: No module named 'distutils'

This error, after consulting, is that this package was removed in version 3.12, resulting in an installation error in version 3.12.

Solution

Reduce the python version to a version that supports distutils. After consulting, version 3.11 supports it. For stability, I chose version 3.10. After reverting to 3.10, execute pip install again and the installation was successful

When installing without vpn or with a slow vpn speed, it may time out. Use the following command instead:

Installation with Alibaba mirror source(Only the Chinese region is required mirror source.)

pip install -i https://mirrors.aliyun.com/pypi/simple -r requirements.txt
alenhrp commented 4 months ago

如何平稳的将python 3.12退回到3.10,请指导下,谢谢

HansonChan commented 4 months ago

如何平稳的将python 3.12退回到3.10,请指导下,谢谢

重新创建一个3.10的venv,直接相互隔离。