warning when importing a file from directoty
7 Feb
2021
7 Feb
'21
6:33 p.m.
I see many people who have their project something like this: ``` directory/ some_module.py main.py ``` and in main.py they do ``` from some_module import some_function ``` while they have a library named `some_module` that is installed from pip, and they can't figure out why Python says that there is no such function. I would recommend adding a warning like "ImportWarning: The same module exists in this folder and site-packages a well." so people won't be confused why this function doesn't exist, it happens a lot for beginners.
1164
Age (days ago)
1166
Last active (days ago)
2 comments
2 participants
participants (2)
-
Jonatan
-
Paul Sokolovsky