Replies: 2 comments 3 replies
-
so I have a feeling that you may not know what a venv is a venv it's like the isolated environment that you can install python packages for a project so that it doesn't interfere with others project the simplest way to do so is in your terminal a command like PS C:\> <venv>\Scripts\Activate.ps1
if you use an IDE or have some other integration configured, the most likely automatically will enter the venv for you so you don't need to do it yourself once you're inside of venv you can use commands like if you wish to know more you can read the docs |
Beta Was this translation helpful? Give feedback.
-
Turns out ChatGPT was able to help me solve the problem. Turns out my VS Code was pointed at the wrong venv -- a backup copy. Here is the response that GPT gave me: It sounds like you're encountering an issue with module visibility within your virtual environment in VS Code. Here are a few steps you can take to troubleshoot and potentially resolve the problem: Verify Installation: First, double-check that kneed was indeed installed correctly within your virtual environment. You can do this by navigating to your virtual environment directory and checking if kneed is listed in the Lib/site-packages directory. #3 was the right answer -- and it revealed that I should probably explocitly define my venv path in my startup script to ensure everything is synchronized. Regardless, thanks for the time and effort you put trying to help! Much appreciated. |
Beta Was this translation helpful? Give feedback.
-
I am writing an extension and would like to use kneed/KneeLocator. I have successfully gotten it installed using the install.py script of my extension, but I can't for the life of me figure out how to import the module into my code. New to this type of dev environment, coming from a long C#/VS background and just getting into the groove in Python/A1111, so any help appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions