Replies: 1 comment
|
The clue is that .venv looks "pretty much empty" — that means pip install -e didn't actually install into this venv, so it's not a sys.path issue in the script, the package genuinely isn't there. Two things go wrong on Windows here:
Do this to confirm and fix, using the venv's own Python explicitly so there's no ambiguity: .venv\Scripts\python.exe -c "import sys; print(sys.prefix)" .venv\Scripts\python.exe -m pip install -e ".[server]" Calling .venv\Scripts\python.exe -m pip ... guarantees the install lands in this venv regardless of whether activation "took". After that, run the tour with the same interpreter: .venv\Scripts\python.exe path\to\tour_script.py If pip show still doesn't find it, scroll up in the install output — an editable install that errored on a build step will leave you with exactly this ModuleNotFoundError. |
Uh oh!
There was an error while loading. Please reload this page.
In a windows server I'm having trouble running the Tour.
So I tried going with option B, I did so far:
python -m venv .venv && .venv\Scripts\activatepip install -e ".[server]"cd web && npm install && cd ..However running the tour I'm getting the error:
ModuleNotFoundError: No module named 'deeptutor'Looking inside of .venv/lib and .venv/includes they are pretty much empty, so I have the sense the workspace folder that was supposed to auto include some deeptutor libs, in the tour script:
or the
def _python_strategy()isn't working as intended to find the necessary lib files despite the .venv being active.So I'm a bit at a loss of what's working different on my envinronment that needs to be workaround.
Any tips?
All reactions