Vs-code unable to import modules modules load

Опубликовано: 15 Февраль 2025
на канале: Emrah KAYA
3
like

Hello everyone! I hope this video has helped solve your questions and issues. This video is shared because a solution has been found for the question/problem. I create videos for questions that have solutions. If you have any other issues, feel free to reach out to me on Instagram:   / ky.emrah  

Below, you can find the text related to the question/problem. In the video, the question will be presented first, followed by the answers. If the video moves too fast, feel free to pause and review the answers. If you need more detailed information, you can find the necessary sources and links at the bottom of this description. I hope this video has been helpful, and even if it doesn't directly solve your problem, it will guide you to the source of the solution. I'd appreciate it if you like the video and subscribe to my channel!Vs-code unable to import modules modules load

I'm opening the same python project in pycharm and everything is working well
opening same folder on vs code with same interpreter
I'm getting error 'Unable to import' on local modules in the project
what do i miss
Example tree
MyFile.py

├── csv (standard library)
├── io (standard library)
├── re (standard library)

|-- __init__.py
|
├── myproject.myfolder.mymodule
│ ├── methodA
│ ├── methodB
| └-- __init__.py

MyFile.py

├── csv (standard library)
├── io (standard library)
├── re (standard library)

|-- __init__.py
|
├── myproject.myfolder.mymodule
│ ├── methodA
│ ├── methodB
| └-- __init__.py

MyFile.py
import csv
import io
import re

from myproject.myfolder.mymodule import methodA, methodB

import csv
import io
import re

from myproject.myfolder.mymodule import methodA, methodB

in pycharm it working well, in Vs-code getting unable to import exception.
Note - i tried to create workspace and venv, not working either
Thanks in advance


Tags: python,visual-studio-code,import,python-import,python-moduleSource of the question:
https://stackoverflow.com/questions/7...

Question and source license information:
https://meta.stackexchange.com/help/l...
https://stackoverflow.com/


На этой странице сайта вы можете посмотреть видео онлайн Vs-code unable to import modules modules load длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Emrah KAYA 15 Февраль 2025, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 3 раз и оно понравилось like зрителям. Приятного просмотра!