Starting django with python manage.py runserver and getting ModuleNotFoundError: No module named '_msi'

django was working fine my venv got corrupted and I rebuilt it from requirements.txt now getting File "C:\Users\PC\OneDrive\Documents\GitHub\DoseV3Master\venv\Lib\site-packages\msilib_init_.py", line 3, in from _msi import * ModuleNotFoundError: No module named '_msi'

went to pypi and got the installer pip install python-msi to noeffect. Then pip install pymsilib also no effect.

This is most likely due to msilib:

Creating venv using python <= 3.12 if you are on windows should solve the issue. On linux, you may have to choose alternative package. Assuming it was working for you earlier, its most likely 3.13 issue.

Вернуться на верх