How to install the Python package for Qiuye integration package

I wrote an article a few days ago "Teaching you step by step how to install the Stable Diffusion Autumn Leaf Integration Package on your local machine" . A classmate encountered the problem of missing Python Module when running, and helped him solve it. Today I will share this experience with everyone. , I hope it can help more students.

Sometimes when starting some plug-ins, a ModuleNotFoundError prompt will appear, similar to the picture below:

At this time, you need to manually install the missing modules and install them through the pip command.

1. The Qiuye integration package comes with a python environment and pip, but there is something wrong with its pip and needs to be upgraded first.

The specific method is: enter the python directory of the integration package in Windows Explorer. The name of the python directory here is py310. Different versions of the integration package may have different directory names, such as python; then enter cmd in the address bar and the keyboard. Press the Enter key (Enter).

In the command window that opens, enter python -m pip isntall --upgrade pip and wait for completion.

2. Then use the same method to enter the Scripts directory under the python directory of the integration package.

Press the Enter key on the keyboard to open the command window below, enter: pip install ultralytics, and wait for completion. ultralytics is the name of the module, just replace it as needed.

Guess you like

Origin blog.csdn.net/bossma/article/details/132022509