Python Module Import Error in VS Code Solved | Virtual Environment in Visual Studio Code

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024

Комментарии • 453

  • @AllanJpa
    @AllanJpa Год назад +79

    Thanks, dude. I did not understand a single word, but the visuals were good enough

  • @999-e8d
    @999-e8d 2 года назад +3

    point to point baat ki he tumne nahi apne baare me intro diya na hi channel ka intro diya nice good work. sahi me i really appreciated

  • @shuklatanmay
    @shuklatanmay Год назад +10

    so after wasting whole day this is the only video that helped

  • @nitishbansal6878
    @nitishbansal6878 2 года назад +3

    Spent one afternoon trying to learn solution(s) from websites and stack overflow. This guy solved my problem in 3 minutes.
    Hint: If you have the package already installed but still is not found by your compiler that means you are using wrong/default interpreter. Change it as mentioned in the video.

    • @badrelkoudia2210
      @badrelkoudia2210 5 месяцев назад

      dude this was more helpful than the video itself

  • @NipunRawat08
    @NipunRawat08 3 года назад +2

    Thnakyou bhaiiii finally 3-4 videos dekne ke bad apki video mili or ek bar mai kam hogaya ❤❤

  • @ajayrajhar170
    @ajayrajhar170 3 года назад +1

    Thank you bro....
    Jo koi channel nahi easily bata paya...tumne bata diya

  • @NikkiSerB
    @NikkiSerB 3 года назад +32

    God bless you, dude! I've been having this problem for months and non of the "TOP" computer guys could deliver the solution. Here is a like and a sub. Thank you!

    • @JoaoPaulo-sv5mg
      @JoaoPaulo-sv5mg 3 года назад +2

      man just said that this guy isn't an TOP GOD COMPUTER GUY??????
      10/10 tutorial

    • @utkarsh.trivedi1
      @utkarsh.trivedi1 2 года назад +1

      Programming with Harry is 10x better than him , but I am not saying that he is not good

    • @aradsoutehkeshan4740
      @aradsoutehkeshan4740 Год назад

      Been a long time since you have commented; But you are absolutely right!

  • @venkataramanapn7656
    @venkataramanapn7656 3 года назад +2

    It is very helpful... Thank god I found your video... This issue made waste 10 hours of my life... Nobody gave the perfect explanation like you

  • @codegangsters
    @codegangsters 3 года назад +6

    Best video ever dude. Thanks alot from my heart. Watch infinite videos and then got this one thank you

  • @abirsharma2226
    @abirsharma2226 3 года назад +1

    arey bhai pagal hogaya tha m is error k chakkar m khin soln ni mila thankx bro thank you very much this worked for me.

  • @MuskanKhan-qu2if
    @MuskanKhan-qu2if 11 месяцев назад

    I love you yrrr! Pta hai kitna sara time bchaya apne mera! Subscribed!! Love you!!!

  • @chiedozieehirim5659
    @chiedozieehirim5659 Год назад +2

    Thanks a lot for the help.
    I have spent more than 4 months trying to resolve this but did it in less than 2 minutes after watching your video.
    Thanks a lot

  • @MuhammadShakir1995
    @MuhammadShakir1995 2 года назад +1

    Thank you. It is very helpful. Thank god I found your video. This issue made wasted 3 Weeks.

  • @sirsusic1326
    @sirsusic1326 4 месяца назад

    Man you're the best, I wish you only the best, my brain was slowly dying from this and you saved me.

  • @zoraizelya3975
    @zoraizelya3975 2 года назад +1

    idk how can i thank you ..... God bless you man,,,,, more and more power to you

  • @aaravsingh4066
    @aaravsingh4066 2 года назад +5

    [HOW TO FIX THIS ERROR ]
    import : The term 'import' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + import pandas
    + ~~~~~~
    + CategoryInfo : ObjectNotFound: (import:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  • @peterkrn
    @peterkrn 7 месяцев назад

    This is the one true solution to those import errors. I thought that a single "pip install ___" could be used by all Python projects on your computer, yet the true solution is to install it manually for each project as Python modules may have different versions one from another, hence virtual environment is the answer. Thanks.

  • @elatopoof
    @elatopoof 6 дней назад

    OMFG DUDE I DONT EVEN UNDERSTAND HINDI BUT YOU SAVED MY LIFE

  • @ankurrana4483
    @ankurrana4483 2 года назад +1

    this is simply superb ...what a trick boss (Prateek) .....perfect

  • @EngePrepare
    @EngePrepare 7 месяцев назад

    He solved Problem I was trying for hour but now I solved it by watching this video thanks

  • @iam_sk_
    @iam_sk_ Год назад +2

    Bro's recording in 12 am. I will say he is a legend

  • @zobiaakhtar1163
    @zobiaakhtar1163 Год назад

    Thank you so much bro! mujhay ye problem mahinon se tha but thanks to you today i finally solved it ...thank you so so so much

  • @bromanHenk1
    @bromanHenk1 3 года назад +7

    Fantastic, managed even without english you speaking English, thumbs up :D

  • @nidhirajiv4758
    @nidhirajiv4758 29 дней назад

    thanks a lot bro. after breaking my head for hours you finally solved this issue

  • @gouravdubey9864
    @gouravdubey9864 8 месяцев назад

    bro you really a good programmer
    meri kafi help ho gai pls asie contents dalte raho

  • @ZaahidEditzzz
    @ZaahidEditzzz Год назад +1

    You deserve a sub with all notifications and if you wanna grow your channel reply to some comments bro, but make sure you reply to comments in every single video

  • @pranjalck
    @pranjalck 2 года назад

    Bhaai 2ghnte se pareshaan ho gya tha.. thank you for helping 🙏🏻🙃

  • @bhaskargowda-3955
    @bhaskargowda-3955 2 года назад

    finally !! AFTER TOOO TOO MANY ATTEMPTS OF DIFF VID'S ....
    thank u soooooooooooooooooooooo much bruhhh

  • @maimonaqaiser7779
    @maimonaqaiser7779 2 года назад

    thankyew so much mera dil kr raha pyautogui wala module use krky apko 1 lac
    dafa thankyew kah dun

  • @owais5337
    @owais5337 Год назад +1

    Thanks bro I was stuck here for almost 5 days

  • @techboi9947
    @techboi9947 2 года назад +4

    Thank you so much dude! It really is the small youtubers who turn the biggest results

  • @One_Of_Kind_Jilu
    @One_Of_Kind_Jilu 3 года назад +3

    Still showing
    Module not found error: no modeule named pydictionary

  • @harshkamboj8044
    @harshkamboj8044 2 года назад +2

    thanks buddy for solution you are a life savior :)

  • @rs89880
    @rs89880 Год назад

    Bhai .... 2 din se lga tha aaj clear hua h 🙏🙏♥️

  • @vaqueirobtc
    @vaqueirobtc Год назад +1

    You saved my studies for the day, thank you

  • @Anonymous-km5od
    @Anonymous-km5od 2 года назад +3

    After I import numpy and run a simple code
    a = numpy.array ([1,2,3])
    Print (a)
    I got an error [partially initialized module 'numpy' has no attribute 'array' ] ( most likely due to a circular import)

  • @Simeon-Lev
    @Simeon-Lev 3 года назад +11

    Thank you! After hours of trying, this is the only thing that worked!

  • @ultragamming6689
    @ultragamming6689 Месяц назад +1

    Please help me to execute my code :
    ModuleNotFoundError : No module named 'sketchpy'

  • @abulaman5362
    @abulaman5362 2 года назад +1

    Even after trying to create the virtual environment the terminal is showing me that it "cannot be loaded because running scripts is disabled on this system"....what can I do..pls help me out

  • @montezmusic
    @montezmusic 3 года назад +1

    Unable to set the virtual environment help me
    defaulting to user installation because normal site-packages is not writable

  • @no_hate_only_love
    @no_hate_only_love 2 месяца назад

    bro lots of love from past 1 hr i m thinking why its not showing and your video is awesome love you xoxx

  • @michaelsean7669
    @michaelsean7669 2 года назад

    Don't know Hindu but your a life saver Thanks take my like and sub

  • @ARTHURZIN21
    @ARTHURZIN21 8 месяцев назад +1

    Where do I install this main file?

  • @himansusekhar861
    @himansusekhar861 Год назад +1

    i am trying to install playsound module but it is showing import error. plz help...

  • @raikgamer9708
    @raikgamer9708 5 месяцев назад

    El mejor video, me bastó solo con cambiar el interprete a Python 3.12. Supongo que los módulos estaban instalados ahí :D

  • @jsquareacademy6101
    @jsquareacademy6101 2 года назад +1

    bro this is not working on my system as erors is show ""running scripts are disabled in this system ...check settings""" i dont how to chnge this system settings...??????????

  • @sarv4265
    @sarv4265 2 года назад +1

    broooo! you are genius you solved my problem.
    thank you so much😍💖
    i subscribed❤

  • @Isaacp95
    @Isaacp95 Месяц назад +1

    Really it works!!

  • @kevenpatrick6294
    @kevenpatrick6294 3 года назад +2

    Hi man, i have this error: import flask could not be resolved from source pylance. I can not fix with the method of the video. It's emergencially, can you help me?

    • @techiedude432
      @techiedude432  3 года назад

      Sure, I'll help you. Share your Anydesk ID over kumarprateek21@gmail.com

  • @luciferboy2324
    @luciferboy2324 4 месяца назад

    i ran a code in jupyter notebook for scatter plot.but this problem is occured
    A module that was compiled using NumPy 1.x cannot be run in
    NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
    versions of NumPy, modules must be compiled with NumPy 2.0.
    Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
    If you are a user of the module, the easiest solution will be to
    downgrade to 'numpy

  • @shaikyaseen3770
    @shaikyaseen3770 8 месяцев назад

    HI your explanation is good, but for me when i open the new terminal (1:48) the venv is not creating, (2:00) the thing which is displayed on the screen is not coming in my laptop)

  • @mandeepsinghflora224
    @mandeepsinghflora224 3 года назад +2

    sir,actually I'm facing a problem while making connectivity , as I already installed pip but after that also my import command is not responding and it give me a module not found error. so please help me.

  • @aayushagrawal9584
    @aayushagrawal9584 3 года назад +2

    Hi Pratik when installing python matplot it giving me some warnings and also get stuck not able to import numpy and matplot library

  • @pbxboyka2255
    @pbxboyka2255 2 года назад +1

    Bro it's not working in my system , it's showing an error that file cannot be loaded because running script is disabled on this system .... please help...🙏

    • @jayapriyan923
      @jayapriyan923 2 года назад

      Bro This error is Caused because of your system Security. So, do this Steps To avoid it.👇🏻
      1. Press the windows-button on your keyboard.
      2. Type 'PowerShell'
      3. Right-click Windows PowerShell
      4. Click Run as Administrator
      5. Run the following command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine " and confirm with Y
      I think You Get it😉

  • @rahulsaha6358
    @rahulsaha6358 2 года назад +8

    You are simply great! like no words can describe how much you helped me here!!! Thanks a lot!!

    • @tekenateifranklyn
      @tekenateifranklyn 2 года назад

      Brother, i think you just borrowed my words. I've been battling with this for like a week now. finally

  • @vibhorbisht4122
    @vibhorbisht4122 9 месяцев назад

    These steps doesn't work for selenium library in python. It after creating virtual environment it is still showing yellow line in imported module and while installing the library by pip it is showing "requirements already satisfied".

  • @techxball
    @techxball 2 года назад +1

    Do you know how this works on Mac OS??

  • @avikashyap2576
    @avikashyap2576 Год назад

    sir my python file not run error showing- import request could not be resolved form source pylance (report missing module source), sir please help.

  • @esaofficial2909
    @esaofficial2909 2 года назад +2

    You are saviour... 😭👍👍💐

  • @learnwitharsalan8531
    @learnwitharsalan8531 10 месяцев назад

    i installed numpy, pandas and mysl-connector-python but all are not going to import Error is No module found

  • @ultimatehellguardians8058
    @ultimatehellguardians8058 3 года назад +1

    bro it is showing that module is not found pls help bro
    pyttsx3 module

  • @arghyatalwalkar5423
    @arghyatalwalkar5423 3 года назад +1

    LIFESAVER OMG. CONGRATZ ON 69 SUBS

  • @shraddhabhambani5312
    @shraddhabhambani5312 Месяц назад

    What is aifc module? I'm getting that error only

  • @LetsDoCodeWithMe
    @LetsDoCodeWithMe Год назад

    Actually I am importing sounddevice as sd and I also installed library ,there is no error but due to import sounddevice my program is not working

  • @somduttacharya7110
    @somduttacharya7110 3 года назад +2

    Thank you so much. Your video saved my life.....

  • @omal
    @omal 2 года назад

    How to fix this error... please help me
    ModuleNotFoundError: No module named 'pytz'

  • @stanleymutisya4723
    @stanleymutisya4723 Год назад

    I wish I could pay you. You are a lifesaver🙏.

  • @ujjwalsingh1981
    @ujjwalsingh1981 2 года назад

    I am still getting this error
    ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\\Users\\hp\\AppData\\Local\\Programs\\Python\\Python39\\Lib\\site-packages\\pip\\_vendor\\distlib\\t64.exe'
    Check the permissions.

  • @ank09singh
    @ank09singh 2 года назад

    after following the steps i am getting error File E:\python_venv\venv\Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system , how to deal with this

    • @ArifAlig
      @ArifAlig 11 месяцев назад

      Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser run this command in terminal window

  • @MWS634
    @MWS634 Год назад

    Bro I'm facing Distutils.Version something error, NoModulenamed "Distutils" How to fix it bro

  • @AyobamiAdetifa
    @AyobamiAdetifa 8 месяцев назад

    While trying to replicate the path not all were yellow so I kept getting error any help?

  • @karansanghavi5308
    @karansanghavi5308 3 года назад +1

    i have installed PyQt5 and sqlite3 module bt when i import them in my file in vs code they says module not accessed by Pylance and thus not able to import any module form them can you please help me

  • @haripriya909
    @haripriya909 2 года назад

    I am getting as access denied for my C drive link. What do i do?

  • @derlisfabianramosdiaz5622
    @derlisfabianramosdiaz5622 2 года назад

    I have this issue on ubuntu and there doesn't exists the "scripts" folder :(

  • @abhisheksah4829
    @abhisheksah4829 2 года назад +1

    Bhai Mera terminal mai jab venv dala toh access is denied dikha Raha hai pls help

  • @leticiapaes3745
    @leticiapaes3745 Год назад +1

    Thank you! Finally the issue was solved!

  • @zainabamir5276
    @zainabamir5276 2 года назад +1

    💕Thank you very much, my problem has been successfully resolved

  • @suryaguptavlog6730
    @suryaguptavlog6730 2 года назад

    from werkzeug import secure_filename, FileStorage
    ImportError: cannot import name 'secure_filename'
    how to solve tis?

  • @manaskumar2425
    @manaskumar2425 6 месяцев назад

    still I'm getting the following error :-
    ImportError: COM technology not available (maybe it's the wrong platform).
    Note that COM is only supported on Windows.

  • @ajmeershahtricks6666
    @ajmeershahtricks6666 2 года назад

    thank you sir after 1 hour finally solve the issue

  • @venusshah4476
    @venusshah4476 2 года назад

    I tried it in each and every way but I am getting this error: ": File C:\Users\shahv\OneDrive\Desktop\Studienarbeit\EXPLAINABLE AI
    STUDIENARBEIT\xai-series-master\STUDIENARBEIT\xai-series-master\venv\Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system" I dont know why, could you please help me with this?

    • @ArifAlig
      @ArifAlig 11 месяцев назад

      Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser run this command in terminal

  • @jaytelgote6404
    @jaytelgote6404 2 года назад

    brother mine one doesn't working
    what to do please suggest me, I'm importing tensorflow.
    explored too much but did not find the relevant

  • @harini6732
    @harini6732 3 года назад +1

    thanks a lot i was stuck with the same prob but with django thanks a lot it solved in a sec!!!!!!!!!!!!!

  • @tansinghrathore4572
    @tansinghrathore4572 3 года назад +2

    Hello, I am getting errors in the installation of the camelot package. I installed all the dependencies but still, it is giving an error . can you please make a video on it.

  • @kranthimsgowda5451
    @kranthimsgowda5451 7 месяцев назад

    Do we need to do every time we open project

  • @Vampion
    @Vampion 4 месяца назад +1

    u r a life saver bro😍

  • @abulhasan923
    @abulhasan923 Год назад

    I cannot run module ttkbootstrap, can anyone help. I've installed it yet i cannot compile the code, it shows the error *No module named 'ttkbootstrap'*

  • @muhammadaqeeldar6044
    @muhammadaqeeldar6044 Год назад

    Access denied. How to solve. This comes just after i run python -m venv path\venv

  • @techtrader8434
    @techtrader8434 3 года назад

    I'm still getting
    Import "requests" could not be resolved from source Pylance(reportMissingModuleSource)[1,8]

  • @dorotafolwarczna9502
    @dorotafolwarczna9502 Год назад

    Can someone help me I don't know how to solve this problem: cannot be loaded because running scripts is disabled on this system. For more information

  • @itsandroler6996
    @itsandroler6996 2 года назад

    How to fix this error?
    Error: Command '['E:\\Visual\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 101.

  • @KomalpreetKaur-v7v
    @KomalpreetKaur-v7v 8 месяцев назад

    Great Video, resolved my issue!!

  • @anujmulhar6125
    @anujmulhar6125 2 года назад

    Sir, I tried this trick for importing the pyautogui , I installed it but it doesn't work please help me

  • @abhijeetmeena1763
    @abhijeetmeena1763 Год назад

    im facing issue like:_
    S C:\J.W.P> bash "c:\J.W.P\venv\Scripts\activate"
    bash : The term 'bash' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
    the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + bash "c:\J.W.P\venv\Scripts\activate"
    + ~~~~
    + CategoryInfo : ObjectNotFound: (bash:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  • @GAURU_PHADI_28
    @GAURU_PHADI_28 8 месяцев назад

    Bhai btado prblm kya hai usme aa rha hau modulenotfounderror: No module named ‘bottle.ext.websocket’😢

  • @mujaffarbhati4750
    @mujaffarbhati4750 2 года назад

    Complete the above video procedure. It solves 90 percent of the cases
    If it still shows error change the interpreter back to the recommended one it will fix the issue.

  • @MrManumanoj
    @MrManumanoj 10 месяцев назад

    module gpsphoto is installed successfully but at run time showing module not found error

  • @rupeshagrawal9600
    @rupeshagrawal9600 3 года назад

    I have a problem in running the server
    No module named file name . Settings

  • @nrh9167
    @nrh9167 2 года назад

    Hey..even after using venv..error is popping up saying no module named pygame..any inputs?