-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Cannot install launch==0.1.0, launch==0.1.1, launch==0.1.2 and launch==0.1.3 because these package versions have conflicting dependencies. #23
Comments
same here |
hi, i have the same problem |
same here |
Same issue here. |
modify you install.py insert sys.path.append('../YOUR_PATH') the launch module is your launch.py just import it |
Same issue :( |
can you please explain your answer? adding this ( even using insert(0, doesn't seem to help me |
Can someone properly explain how to fix it in English or make a pull request? |
Python is failing to import a module. Usually, this can be solved by running "pip install " inside of the terminal but because "launch" is not a package defined in the pip repository, we cannot use pip for this. Instead, we need to specify a path where Python looks for the "launch" module. "launch.py" is a Python script in the webui and is what we need to import. So instead of finding and installing something on the internet using pip, the webui uses a file path on your computer to import the "launch.py" script. To fix this we need to change where python is looking. Normally we would have to use pip to install a module from the internet using pip, but we want it to look on our computer. To do that simply in a Python program, we can import the "sys" package (which is defined by Python) and add a file path to where it is looking to import from. Go to the extensions folder, find this extension's folder, open the "launch.py" file (for the extension), and add this code to the top: import sys Now, when the script does "from launch import run" later on, it will check the webui folder and try importing the module from there. What "sys.append()" does, is take an input of the file path you want to add: set this to your "stable-diffusion-webui" folder (for a1111) path. Mine on Linux looks like "sys.append("/home/myname/stable-diffusion-webui")". Then after we have added the file path to a list that it checks when importing, we can import the "launch" module as done by the line later on: "from launch import run". I find myself having to do this pretty often with new extensions if they fail to import "launch". I just go into the script and change the file path to include the a1111 webui folder and it usually works. Hope this helped. I am still learning too. |
this due to lower versions we need to add. like python 3.9 and 3.10 |
cd to your sd webui root path, run this command: PYTHONPATH=$(pwd) python extensions/sd-webui-segment-anything/install.py |
if the above solution isn't working for you...Windows |
pip install --upgrade setuptools solved my problem. |
add one line before "from lauch import run" sys.path.append('/home/rrrr/stable-diffusion-webui') |
python install.py
Traceback (most recent call last): File "/root/soft/sd_civitai_extension/install.py", line 7, in <module> from launch import run ModuleNotFoundError: No module named 'launch'
pip install launch
system info:
ubuntu 20.04
python 3.10
pip 22.3.1
The text was updated successfully, but these errors were encountered: