skip to Main Content

Visual Studio Code – Why can PowerShell not run Python with activated environment, but runs when environment is deactivated?

I ran in Terminal of Visual Studio Code: (.env) PS C:UsersekuulDesktopGreatProjectsRoom reservation systemmainbackend-api> python No Python at 'C:Program FilesPython310python.exe' (.env) PS C:UsersekuulDesktopGreatProjectsRoom reservation systemmainbackend-api> deactivate PS C:UsersekuulDesktopGreatProjectsRoom reservation systemmainbackend-api> python Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64…

VIEW QUESTION

Visual Studio Code – Python in Vs-Code: Can't import python file

When i try to run main.py, this error appears: ModuleNotFoundError: No module named 'catalog' main.py from catalog.config import config from catalog.config.log_config import app_logging_config from catalog.es_catalog_controller import EsCatalogController @lru_cache() def get_settings(): return config.Settings() catalog_controller = EsCatalogController() It seems that vscode does…

VIEW QUESTION
Back To Top
Search