Python import ModuleNotFoundError: No module named

Viewed 27

when i run my code in pycharm - everything is ok. But when i try run my code in cmd I'm getting an error:

File "E:\programowanie\automatyzacja\otomoto\tests\FooterLinks.py", line 4, in from otomoto.pages.HomePage import HomePageLocators ModuleNotFoundError: No module named 'otomoto'

This is my Tree

Import code:

import unittest
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from otomoto.pages.HomePage import HomePageLocators
1 Answers

try installing otomoto by using this command:-

pip install otomoto
Related