How to Fix "No Module Named..." Error in Python | Python Tutorial

  Рет қаралды 350,090

Phil Parisi

Phil Parisi

3 жыл бұрын

How to Fix ImportError "No Module Named pkg_name" in Python! First, download the package using a terminal outside of python. Then fix your %PATH% if needed. Troubleshoot for beginners.
🤝 Support me on Patreon! / philparisi_
🌱 Want to say thanks? buymeacoffee.com/philparisi_
🌏 More on Insta! / philparisi_
🔥 And the rest! linktr.ee/philparisi_
No module named SEABORN • How to Fix ImportError...
No module named MATPLOTLIB • How to Fix ImportError...
No module named PANDAS • How to Fix ImportError...
No module named NUMPY • How to Fix ImportError...
No module named SKLEARN • How to Fix ImportError...
To use "import pkg_name" in a script, you must INSTALL THE PACKAGE!
---- For VIRTUAL ENVIRONMENTS or PYCHARM users, watch this: • How to Install Package...
Installing
0:04 Option 1, use the 'Terminal' in your IDE (PyCharm)
pip3 install pkg_name OR pip install pkg_name
This installs the package in your virtual PyCharm environment
1:21 Option 2, open a terminal with your Operating System
pip3 install pkg_name OR pip install pkg_name
Also try "python -m pip3 install pkg_name"
This installs the package onto your system, accessible to all IDE's and python interpreters.
*********************************
Troubleshooting (if option 2 does not work)
2:03 Option A, check your PATH and add a new variable to it
display current path with: 'echo %PATH%'
find your pip.exe file
add to path with: setx PATH "%PATH%;C:\location_of_your_pip.exe\Python39\Scripts\"
5:32 If A doesn't work, try this: use the 'Run' application (works reliably)
add your location of pip.exe to System Variables and User Variables
**********************************
Install Python and PyCharm IDE: • How to Install Python ...
Python Coding Series: • Beginner Guide to Pyth...
Python Macros Tutorial: • How to Make a Macro in...
Lists in Python: • Video
Variables in Python: • Video
Comment below and I will help you out!
🤝 Support me on Patreon! / philparisi_
🌱 Want to say thanks? buymeacoffee.com/philparisi_
🌏 More on Insta! / philparisi_
🔥 And the rest! linktr.ee/philparisi_

Пікірлер: 603
@philparisi_
@philparisi_ Жыл бұрын
No module named SEABORN kzbin.info/www/bejne/hWS0iJqmoLdladU No module named MATPLOTLIB kzbin.info/www/bejne/rpW1hKirhJJqhtU No module named PANDAS kzbin.info/www/bejne/pJWYepV_hbmLrqM No module named NUMPY kzbin.info/www/bejne/rHq1Z6iqf5yGarc No module named SKLEARN kzbin.info/www/bejne/l5bPeaCgrKqHp7c
@jameswaweru5234
@jameswaweru5234 3 жыл бұрын
2 minutes into the video and I had already solved my problem. You sir, are a lifesaver!
@philparisi_
@philparisi_ 3 жыл бұрын
@james woohoo glad it worked for ya! Thank you for watching!
@gabrielgarcia7554
@gabrielgarcia7554 2 жыл бұрын
For others that are still having the error, the problem is that you could have selected the wrong interpreter. I highly recommend the video: "Selecting the correct Python interpreter in VSCode's Python Extension" that goes over on how to solve the issue. While the YT channel uses a Mac, the same exact process can occur with a Windows PC.
@philparisi_
@philparisi_ 2 жыл бұрын
Gabriel, this is excellently written. Thank you for sharing so others will be able to benefit from your experience! Have a good one.
@katiak74
@katiak74 2 жыл бұрын
You save me today! Loosing hours trying to fix it. Super thanks!
@philparisi_
@philparisi_ 2 жыл бұрын
@@katiak74 woop woop glad to hear it Katiak!! Have a great day!
@rabiukhalid3907
@rabiukhalid3907 2 жыл бұрын
Thanks so very much man. This was the problem I was facing.
@fzf404
@fzf404 2 жыл бұрын
What if it still occurs in cmd?
@sagarjainmp
@sagarjainmp 2 жыл бұрын
Spent hours trying to fix the problem: "ModuleNotFoundError: No module named openpyxl". And I then was able to fix it by just watching the first 35 seconds of this video. Man, you are awesome!
@philparisi_
@philparisi_ 2 жыл бұрын
Sweeeet happy it worked Sagar! Have an awesome week.
@zeo4481
@zeo4481 Жыл бұрын
I'm having an issue. I'm trying to install torch and torchvision(trying to get ,,Stable Diffusion" working on my device) and it's returning me Error code 1 : "python.exe: No module named pip" That is very weird considering i have executed: "py -m ensurepip --upgrade " on my command prompt after turning off anti-virus and can clearly see it in my scripts for my Python version (im on 3.9.0) I have set it as PATH so i have no possible idea why it still doesn't recognize it. Help!
@philparisi_
@philparisi_ Жыл бұрын
Hi ZEO, dang you are in it deep! Been there haha. Ok, do the steps in this 3min video (and replace numpy with your package) and let me know what you get. Back up and don‘t do anything with IDE‘s if you haven‘t already. kzbin.info/www/bejne/rHq1Z6iqf5yGarc Let me know what the results are from that video!
@GabiPlastina
@GabiPlastina 2 жыл бұрын
ERROR: Could not find a version that satisfies the requirement familia (from versions: none) ERROR: No matching distribution found for familia alguien podria ayudarme? Me da ese error
@philparisi_
@philparisi_ 2 жыл бұрын
Buenos diss Gabi, it sounds like there is a problem with the package you installed. Look up the package‘s documentation for how to properly install and import into a script!
@NCR_22
@NCR_22 2 жыл бұрын
I was trying to fix it for like a hour and a half, following some tutorials, but didn't work, but suddenly found your tutorial, and finally I was able to fix it. It was in the last way you showed, which I hadn't seen before, so thank you so much!
@philparisi_
@philparisi_ 2 жыл бұрын
Heck yeah NCR, glad it finally worked out for you! Happy programming - cheers!!
@veltinius
@veltinius 2 жыл бұрын
Thank you! Since I'm a beginner, such problems are really hard to solve for me, but this tutorial is amazing and helped me a lot!
@philparisi_
@philparisi_ 2 жыл бұрын
Glad I could you out, Bread! I made this channel for that exact reason, helping beginners. Been there many times, keep up the great work!
@UmmairRadi
@UmmairRadi 2 жыл бұрын
I am trying to run web3 from a virtual environment. everything is installed but i keep getting this error "ModuleNotFoundError: No module named 'web3'". it's working fine if ran from the terminal using "Pipenv run python app.py" but can't run it from VS code. The interpreter is set to env so no problem with that, any fix?
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Ummair, it's hard for me to point at the error in your case as I haven't tried this out in VScode before. Is the error affecting only one package and not the others? Try installing and importing a new package and see if that also throws an error. Also try uninstalling and reinstalling the package, and make sure VS code is pointing to the right environment. Best of luck - if you solve it please post here to help others with a similar issue!
@_manana
@_manana 3 жыл бұрын
hello I fucked up my path because I forgot to add %PATH% on the command any way to fix this?
@piyushharsh01
@piyushharsh01 2 жыл бұрын
ModuleNotFoundError: No module named 'urllib.parse'; 'urllib' is not a package I am encountering this problem, I have set the environment variable and have installed urllib3 library, but still same error. Could please help?
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Piyush, what lines of code are you running that prompt this error?
@rajeshn8751
@rajeshn8751 Жыл бұрын
Mate getting No Module named requests, though I have installed it multiple times using ConEmu, and through Pycharm (where I can clearly see it) uninstalled all Pycharm, python and all the jing-bangs... nothing seem to work... any help mate.... also want to know when I use ConEmu it always points to C:]Python35 while I have installed 3.10. How do I change the path both in Pycharm and ConEmu to point to the right installation directory... sorry if this is a stupid question, but just a beginner question mate... great video by the way... I learn to install packages through Pycharm....
@philparisi_
@philparisi_ Жыл бұрын
Hey Rajesh, sorry you’re still having troubles. Ive never used ConEmu before, but in general I like to work back to the basics to get things working and then use more advanced software after. The pointing to the wrong Python version is a real problem you need to fix. Idk about ConEmu, but in Pycharm you can select the Python version when you start a new project as well as when you are editing a configuration to run a specific file. Try watching this video and get the sample.py working kzbin.info/www/bejne/pJWYepV_hbmLrqM&feature=share&EKLEiJECCKjOmKnC5IiRIQ This gives you a sanity check that you can in fact run a script successfully with ‘import module’. Then, try to replicate that video with the package you are using. Then, get it working in Pycharm. Then, go into ConEmu.
@oksowhat
@oksowhat 2 жыл бұрын
hi there, i had this roblem of module not found after converting it into a .exe , the pop up gives this error that module not found
@philparisi_
@philparisi_ 2 жыл бұрын
Hello Tree, what exactly did you convert to an .exe? Your python script?
@its_taha1312
@its_taha1312 3 жыл бұрын
Hey Phil, I have Spyder and I need to type a command - from selenium import web driver. i get the issue saying no module named 'selenium' . I went to my cmd and installed selenium and when i go back to spyder and runthe command again, it still doesn't work
@philparisi_
@philparisi_ 3 жыл бұрын
@Its_Taha 13 thank you for reaching out! Likely, your system now has the package selenium, but the Spyder environment hasn't updated and thus doesn't have access to selenium. I haven't used Spyder, but see if you can do either of these: 1- prompt a reload of packages the Spyder virtual environment is using, or 2- create a new project/virtual-env, bring in all system packages, then try running a simple command with selenium. Let me know if that works!
@ludmiladias9346
@ludmiladias9346 2 жыл бұрын
MOÇO OBRIGADA SÉRIO, EU TAVA SURTANDO JÁ AQUI, EU TENTEI DE TUDO. JÁ TINHA FEITO OS PRIMEIROS MÉTODOS AI FIZ OS DOIS ÚLTIMOS E OIA DEU CERTO!!!! MEO DEOS Q ALEGRIA. EU TAVA ENTRANDO EM DEPRESSÃO JÁ. OBRIGADA MOÇO VC LACROU.
@philparisi_
@philparisi_ 2 жыл бұрын
excelente! feliz por poder ajudar. a programação deve ser alegre, não deprimente!
@ven._._.
@ven._._. Жыл бұрын
it works on vs and others programs but when i enter it on the windows terminal it says that the module cant be found?
@philparisi_
@philparisi_ Жыл бұрын
Hey there, when you do the windows terminal be sure to run two commands: python import package
@ragemax8852
@ragemax8852 3 ай бұрын
Okay, that last one worked going into the variables to edit in that command, so I would suggest people do that first then go back into command prompt to enter that path in. Thank you for the help, Phil!
@philparisi_
@philparisi_ 3 ай бұрын
Awesome, thank you for the feedback!!
@madarauchiha3649
@madarauchiha3649 2 жыл бұрын
Thank you so much Phil. Excellent tutorial for beginners like me, saved so much of my time. I subscribed.
@philparisi_
@philparisi_ Жыл бұрын
Hi Madara! Thank you so much for the support. My apologies for the late reply, KZbin held back your comment for some weird reason. You are awesome and I wish you a great week!!!
@billyparham630
@billyparham630 2 жыл бұрын
one minute in, problem solved. my problem was i installed the packages via terminal that was external to pycharm, the mac terminal. once i installed the packages via terminal in the pycharm bottom bar, they were instantly recognized. thank you so much, Phil!
@philparisi_
@philparisi_ 2 жыл бұрын
This is the best news I’ve heard all day! Glad it worked for you Impertiv XVII, have a great weekend!
@tung1411
@tung1411 Жыл бұрын
Wasted hours surfing Google and try several solutions but failed. Finally, you save me. Thank you so much.
@philparisi_
@philparisi_ Жыл бұрын
This is so great to hear Tung Le :) sorry you had a hard time with this issue, but I’m thrilled it is fixed!
@dhanushbhargav7865
@dhanushbhargav7865 2 жыл бұрын
“Cryptography fernet module not found” Tried installing pip3 install cryptography But then, no use can you help me?
@philparisi_
@philparisi_ 2 жыл бұрын
Hi dhanush, open up a command line and type: pip3 install cryptography Does that work? I was able to run it fine on my system. Also, are you using an IDE like PyCharm or something else?
@monaosman577
@monaosman577 2 жыл бұрын
i am on python '3.10' and when i run the program and "import vpython" it says : "Exception: The non-notebook version of vpython requires Python 3.5 or later. vpython does work on Python 2.7 and 3.4 in the Jupyter notebook environment." anyone can help!!
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Mona, from the error message you're getting, I'd recommend checking on the compatibility of vpython and 3.10. Seeing as the error is saying vpython works with Python 2.7 and 3.4 in Jupyter, those may be the only ones it works with, hence 3.10 may not be compatible with vpython. Find their documentation and read more!
@maisylane8810
@maisylane8810 3 жыл бұрын
hey, im literally so stuck. i have my python installed but im running in a powershell and not the command prompt. in the powershell i put;; pip 3 install discord, and it says that i have installed it. but, when i go to run my code in python it says that it cant find discord. but my command prompt wont download pip 3!! please help
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Maisy! Ugh, I remember being there when I started in Python. You are using powershell. Any particular reason? Python seems to have the package called 'discord', that's good. The issue you are facing may be because the package is installed on your system and not in your virtual environment. Here is a video I made on virtual environments which will help: kzbin.info/www/bejne/sHSyZH6ui5ethqs This begs the question: how are you running scripts? Are you using an IDE or simply executing line-by-line in IDLE? try running 'import discord' in IDLE, or putting it as the first line of a script if you are using an IDE. Does 'import discord' throw an error? Regarding the pip3 download, what version of python are you running? If you were able to run pip3 install discord, then pip3 is likely already on your computer. Here is a python download tutorial which may help as well: kzbin.info/www/bejne/rXbYXoJ5pd5gb9E I hope some of this can help! Please let me know.
@tomasferreira3625
@tomasferreira3625 3 ай бұрын
Thanks a lot, after many hours searching on how to fix No module named ... error, I finally solved it!
@philparisi_
@philparisi_ 2 ай бұрын
Glad it worked!!
@wilbourneftdrakevevos9868
@wilbourneftdrakevevos9868 Жыл бұрын
No matching distribution found for configparser-using kali trying to install configparser if you cound know how to remove older python versions without breaking my system i will appreciate i have tried but it breaks my system and i have to reinstall
@philparisi_
@philparisi_ Жыл бұрын
Hey Wilbourne, sounds like you‘re in a pickle. Not sure what you‘ve tried yet… but can you keep that older of python on there? Then you can install a newer version on top. If you are using PyCharm, you can choose which python version/interpreter you want to use for a given project.
@MidranKidran
@MidranKidran 2 жыл бұрын
Thanks man, I was searching for like 2 hours and nothing helped but thanks to this video it works. I started learning Python yesterday and wanted to try out something new but the modules not working was a roadblock.
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Midran, starting off can be a drag! That's why I make videos... to hopefully help the next programming and some you some time! Feel free to subscribe if you're interested in more tips down the road! Thanks for watching :)
@ldk_929
@ldk_929 Жыл бұрын
when i typed pip3 install freegames it got installed but when i run the code i still get an error
@philparisi_
@philparisi_ Жыл бұрын
Check to see if you can import the package in a terminal / command window. If that is successful, then the package is installed correctly AND it’s the IDE you’re using that’s the problem. Be sure to install the package in the IDE as well, or ensure the IDE is inheriting all packages on your system.
@lizachuyaozhang3824
@lizachuyaozhang3824 Жыл бұрын
Hi Phil, thank you for the video. I am just wondering if you know the solution for "No module named 'iree.compiler.transforms'". I was trying to follow the way you introduced in this video about how to install new models, but it seemed that this iree model is not able to found? Do you by any chance know how to fix this? Thanks in advance.
@philparisi_
@philparisi_ Жыл бұрын
Hi Liza, it sounds like you are trying to use a feature of a package (module) that you haven’t installed. In this case, you need to find the package that the iree model is a part of. Google around to see if you can find the package, and they’ll likely have install/import instructions!
@glacialyx
@glacialyx Жыл бұрын
FIX THAT WORKED FOR ME: when creating a new project in Pycharm you need to check the box that says 'inherit global site-packages'. Making a new project and choosing that option fixed the problem for me (if you have some files in your current project, make a new project as I explained above and move the files into the new project). If it doesn't work try restarting your pc. Hope this helps
@philparisi_
@philparisi_ Жыл бұрын
Thanks for adding this Glacialyx! Happy coding :)
@pointblank722
@pointblank722 Жыл бұрын
I get the same error but when I want to install is says "Requirement already satisfied:xxx" So I can not use the modules that I installed
@philparisi_
@philparisi_ Жыл бұрын
Are you using an IDE? What may be happening is that you have the packes on your computer, but the IDE can’t find em. Try googling how to install packages for your specific IDE!
@VtojeC
@VtojeC Жыл бұрын
Thank you sir. I was getting depressed or frustrated more than ever by that error message. I tried everything, even reading weird-ass topics on StackOverflow I couldn't even understand. This whole problem was a real pan in the ass. I somehow repaired it using the last method, by adding a python to the path manually as by CMD it just didn't do a job. When I didnt have a required 'import' I was clicking a red bulb in PyCharm and installing missing modules by that, instead of pip. This is because it worked for some time while pip was installing stuff, but system was not able to see installed things at all. Now, after so much wasted time, I am terrified to modify anything, because I'm scared I will have to go through it once again. I really hope that stuff won't show up again. Thank you for helping me. I am really grateful. It may sound stupid, but looks like you saved my future, heh.
@philparisi_
@philparisi_ Жыл бұрын
Hi Visione, I am so glad that I could save you from the Hell that installing packages in Python can be. Especially if you’re new, it can be super confusing as many online sources do not teach this part of the language well. Do not worry and think your troubles are because you are inadequate - this video have 200,000+ views for a reason!! There’s a saying I really like that applies here: “Everything is faster the second time.” Resetting everything up may seem scary, but I believe in you! If you are concerned, try something simple, like replicating the PyCharm project you are currently using (and keep your current one as a backup!). You got this, keep going strong and things will be easier 🙌🏽🙌🏽
@santoshram8797
@santoshram8797 3 жыл бұрын
Sir, i have installed Pyqt5 and tools, but when i write From pyqt5.qtwidgets import Qapplication Then it cant import q application Qapplication is correctly installed and i have also checked the code
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Santosh - thank you for reaching out. It sounds like you have the package Pyqt5 installed correctly. Do you see any errors when you run: import pyqt5? If not, then your package is installed correctly. If you are only receiving an error when you run the 'from / import' command, it is likely an error in what you are specifying in the from and import statement. What I mean, is maybe the proper way to import, would be 'from pyqt5 import qapplication' or some variety thereof. Check the documentation for pyqt5 and see what the proper import method is! Let me know how it goes.
@NganHuynh-lr1zi
@NganHuynh-lr1zi 2 жыл бұрын
hi, i have 1 error which is ModuleNotFoundError: No module named 'encodings'. after pip install encodings still no error. Someone know how to solve it please help me. Thank you very much
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Ngan, ok let's try a few things (I also recommended peeking at some of the other comment threads). Open up IDLE and 'import encodings'. Does that succeed? If so your problem is with the IDE. Also, what IDE are you using? If it's PyCharm, start a new project and check the box in the popup window that says to import all packages. Also try creating a python script with a simple .txt file saved as 'testing.py'. Add a line that says 'import numpy' at the top and try running that testing.py file form your command line!
@carnageofficial9691
@carnageofficial9691 3 жыл бұрын
i tried this solution from youtubers having million of subscribers...none of them worked...you did it bro...thank you so much
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Team CrYsis! Thank you for your kind comment. Happy to be helping programmers like yourself! Have an awesome week.
@aleksanderklimczyk7879
@aleksanderklimczyk7879 2 жыл бұрын
Bro please help... so I need to import numpy, when I do pip3 install numpy, I get a message saying 'Requirement already satisfied:', but when I try to import numpy in a python file, I still get an error saying numpy module not found.
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Aleksander, ok let's try a few things (I also recommended peeking at some of the other comment threads). Open up IDLE and 'import numpy'. Does that succeed? If so your problem is with the IDE. Also, what IDE are you using? If it's PyCharm, start a new project and check the box in the popup window that says to import all packages. Also try creating a python script with a simple .txt file saved as 'testing.py'. Add a line that says 'import numpy' at the top and try running that testing.py file form your command line!
@aleksanderklimczyk7879
@aleksanderklimczyk7879 2 жыл бұрын
@@philparisi_ Hello, thanks for the help, however, I fixed my problem about an hour or two after I asked my question. The answer to my problem came to me via the same way I usually get my answers; A random Indian dude on KZbin lol. Incase anyone has the same problem as me, watch this video: kzbin.info/www/bejne/kHq7in2La6aNrKc
@anaghaanu8198
@anaghaanu8198 Жыл бұрын
The same error....'No module named ......' occurred while trying to import a user-defined module... what can I do to fix it !?? Can you please help!!
@philparisi_
@philparisi_ Жыл бұрын
When importing a user defined module, make sure the “module.py” is in the same folder as your main.py script. Or at least be sure that you are sourcing the path from your main.py to the module.py!
@shibasheikh6183
@shibasheikh6183 8 ай бұрын
Hi , i am receiving this error for cumulusci ..but the thing is i already have installed cumulusci still receiving this no module name cumulusci Anyone can help?
@philparisi_
@philparisi_ 8 ай бұрын
Hey there Shiba, hmm this is odd to hear!! I opened a terminal, ran - pip3 install cumulusci - python - import cumulusci And it worked! To me, this means you‘re using an IDE or virtual environment that doesn‘t have the package installed (even though the package is installed on your machine). Try checking what packages are installed in your IDE!
@nessajordyn
@nessajordyn Жыл бұрын
Hey, this didn't work for me. I need help. ): I'm trying to do "from graphics import * did the first step and nothing. I missed only one of my CS labs for school and now I'm all sorts of behind ahh
@philparisi_
@philparisi_ Жыл бұрын
Hi Manessa! Happy to help. graphics.py is a special case! It is not a downloadable package using pip nor is part of the python base installation. Instead, download this file: mcsp.wartburg.edu/zelle/python/graphics.py (or copy the contents into a file called graphics.py). Put that graphics.py file in the SAME FOLDER as your current_script.py. Then, your 'from graphics import *' should work in your current_script.py. Let me know if that works for you!
@hhelpinghands-dotcom2194
@hhelpinghands-dotcom2194 Жыл бұрын
hey sir I'm using python3.9 and I have installed colorama successfully, i can see it through pip list, but when i ran a code, which is actually importing colorama, it says, no module named colorama. After which i tried again to install it but it says the requirement already satisfied, but the no module error persists. help me please.
@philparisi_
@philparisi_ Жыл бұрын
Hi there, try opening a command line, typing 'python', then 'import colorama' (or whatever the package name is). If that works, then you have the package. If it does not work, the issue is with the IDE you are using. Follow this but replace 'sklearn' with your package name: kzbin.info/www/bejne/hWS0iJqmoLdladU
@hhelpinghands-dotcom2194
@hhelpinghands-dotcom2194 Жыл бұрын
@@philparisi_ all the packages are installed and all are showing in the list after 'pip list' command! But this the error is coming! And I tried to run my code from the command prompt too, still the issue is there! Error: no module name colorama After trying with 'pip3 install colorama' It appears 'the requirement already satisfied' And the again, the error comes 'no module named colorama' Don't know what to do! 😢 By the, I am trying to run the hashlips, bulk NFTs uploader to opensea python script
@lordstinson8095
@lordstinson8095 2 жыл бұрын
The problem I'm facing is that I've installed a module 'editdistance' using pip, but I'm still getting the "module not found" error in my jupyter notebook. The module shows up in `pip list` too. What could be the problem?
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Lord Stinson, I don't cover Jupyter notebooks in this video but I found this article that might help! jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/
@philparisi_
@philparisi_ 2 жыл бұрын
This too www.msi.umn.edu/support/faq/how-do-i-install-python-packages-use-jupyter-notebooks
@BlutreGamez108
@BlutreGamez108 2 жыл бұрын
I have to install pygeoip package I did everything you told me but it still is showing the error! what do I do pls reply fast!
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Blutre, first, open Python IDLE and try running the import command. If that command is successful, then you know the problem is strictly within VS code or whichever IDE you are using (in which case, try creating a new project or file and start fresh). If the import command fails in IDLE then you know it is an issue with the package not being on your computer, try pip3 install again!
@nadiasafafajriani1121
@nadiasafafajriani1121 Жыл бұрын
thanks for the video, but i still found some error. i already successfully pip3 install pyfirmata, but it still appear No module named pyfirmata, help me please (im using spyder IDE on windows)
@philparisi_
@philparisi_ Жыл бұрын
Hmm yes a number of people have had the same issue with Spyder. I’d suggest looking into how Spyder brings in packages on your computer and how they recommend importing / installing packages. They’re a unique software that tends to give some trouble.
@juansanchez7191
@juansanchez7191 2 жыл бұрын
Hello, I've installed tkcalendar with pip3, even pip, but when I call to "from tkcalendar import calendar" VScode shows me an error message right in the "tkcalendar"
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Juan, Be sure to capitalize the C in Calendar!! That should do it :) I did the same thing on my system to replicate the error. Opened up command line: Installed with 'pip3 install tkcalendar' 'python' 'import tkcalendar' (worked!) 'from tkcalendar import calendar' (did not work!) 'from tkcalendar import Calendar' (worked!) Thank you for supporting the channel! -Phil
@juansanchez7191
@juansanchez7191 2 жыл бұрын
@@philparisi_ thanks for answering, I just fixed it haha, I use the Ctrl+shift+p command and selected the opt Python Refactor: sort imports. For some reason it seems Vscode wasn't indexing right the installed package.
@philparisi_
@philparisi_ 2 жыл бұрын
@@juansanchez7191 well done! Happy you figured it out. Have a great weekend!
@reimasaeed1521
@reimasaeed1521 3 жыл бұрын
Oh Man. one minute of watching this video solved my problem. I spent two days looking for an answer. Thank uuuuuuuuuuuuuuu
@philparisi_
@philparisi_ 3 жыл бұрын
Awesome Marwan! Have a stellar week!
@juanpablohorn6642
@juanpablohorn6642 2 жыл бұрын
I'm not sure why, but none of the methods showed on your video worked for me. I'mnot sure if its the module I'm trying to import. In my case, I'm importing openpyxl. What else could be wrong?
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Juan, what is the exact error you are getting? The import error one? Try opening up IDLE and running import openpyxl. If that works then the package is on your system but not in whatever IDE you are using.
@juanpablohorn6642
@juanpablohorn6642 2 жыл бұрын
@@philparisi_ Hello Phils! This is my code. It is a very simple one: import openpyxl book = openpyxl.load_workbook(r'C:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\marks.xlsx') sheet=book["Sheet1"] print(sheet["B3"].value) sheet("G2")="Hello there" book.save(r'C:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\marks.xlsx') And this is what the output windows says: [Running] python -u "c:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\First.py" File "c:\Users\Juan Pablo Horn\Dropbox\Excel Macro Mastery\How to Replace VBA with Python(Step-By-Step Tutorial)\First.py", line 15 sheet("G2")="Hello there" ^ SyntaxError: cannot assign to function call [Done] exited with code=1 in 0.088 seconds Do you know what might be wrong?
@rokayabenjeddou6693
@rokayabenjeddou6693 Жыл бұрын
Think you very much, it is very useful for me and solved my pb; now I can easily use the package pyDecision
@philparisi_
@philparisi_ Жыл бұрын
Awesome! Happy to hear it worked for you - happy coding :)
@ojaswitatoppo5306
@ojaswitatoppo5306 2 жыл бұрын
Could I use pip3 to install Fiona when geopandas is installed using conda-forge? Do I need to install both using pip3?
@philparisi_
@philparisi_ 2 жыл бұрын
Hi osjaswita, this is a very specific topic that I don't have direct experience in unfortunately. If I were you, I'd look into documentation on the packages to see what the requirements are and what needs to be installed. If that were unsuccessful, I'd simply try installing both and see if that works. If it doesn't, uninstall Fiona and try that, and so on and so on. You may consider starting a new virtual environment for this experimentation so you do not mess with your current environment that presumably works for your other scripts. Best of luck! Do let me know what you find out.
@ojaswitatoppo5306
@ojaswitatoppo5306 2 жыл бұрын
@@philparisi_ Thank you for responding. I'll certainly follow your advice, however I uninstalled and re-installed anaconda yesterday. The command prompt is crashed. I am unable to create a new environment. But, I'll keep on trying until the issue is resolved.
@philparisi_
@philparisi_ 2 жыл бұрын
@@ojaswitatoppo5306 Ooof, sounds like you're in a pretty brutal place. Might take a big uninstall and re-install... Been there before (broken dependencies, and it's awful) so I feel your pain man. Good luck getting back up and running!
@ojaswitatoppo5306
@ojaswitatoppo5306 2 жыл бұрын
Hey, just giving you the update. I managed to download the geopandas along with Fiona and gdal. I uninstalled conda as well as python versions. Installed python 3.8, then separately installed fiona.whl and gdal.whl versions that were compatible with each other. After this, I ran the pip install and everything went smoothly.
@philparisi_
@philparisi_ 2 жыл бұрын
@@ojaswitatoppo5306 thank you so much for following up on this!! So it seems like uninstalling and starting with a fresh slate... then grabbing the compatible fiona and gdal did the trick. Beautiful. Really appreciate you looping back. Have a great week!!
@senshun.5384
@senshun.5384 3 жыл бұрын
YO THIS ACTUALLY SOLVED MY PROBLEM THANK YOU SO MUCH!!
@philparisi_
@philparisi_ 3 жыл бұрын
Awesome! Glad it worked for you Senshun.
@lawrencegandhar3756
@lawrencegandhar3756 2 жыл бұрын
Hi I am facing this error, can anyony please help ModuleNotFoundError: No module named 'kivy.graphics.instructions'
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Lawrence, interesting error. First, open Python IDLE and try running the import command. If that command is successful, then you know the problem is strictly within VS code or whichever IDE you use (in which case, try creating a new project or file and start fresh). If the import command fails in IDLE then you know it is an issue with the package not being on your computer, try pip3 install again!
@jjkydyt3011
@jjkydyt3011 3 жыл бұрын
hey man you helped me i didnt even think about the packages i was working on an auto typer and i was so confused with the issue thx bro.
@philparisi_
@philparisi_ 3 жыл бұрын
Absolutely man, happy to help. Good luck with your auto-typer!
@neginsalari8
@neginsalari8 2 жыл бұрын
the best video that I could find on youtube about this topic, thx bro
@philparisi_
@philparisi_ 2 жыл бұрын
Thanks Negin! Glad you found this useful. I wish you best on your future programming endeavors :)
@GQElvie
@GQElvie 3 жыл бұрын
ok, so I am still trying to get this. you mention that if you are having trouble importing, it is because what you are trying to import is not installed. but what if it IS installed (i verified several times), and you get the error message, "no module named......" so, in pycharm, I type, import pystan, and I get this error message. ModuleNotFoundError: No module named 'pystan'
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Rock on Forever, this may be a result of the package not be loaded in the PyCharm virtual environment. Here is what I recommend: 1. open up IDLE. run 'import pystan' If that works, the package is installed on your PC. 2. I have a video on packages in PyCharm kzbin.info/www/bejne/sHSyZH6ui5ethqs watch that and try using the PyCharm package GUI to get that package working! -Phil
@inhwanpark2924
@inhwanpark2924 3 жыл бұрын
Wow unbelievable. You solved my issue. I can't believe it. Thank you so much. I subscribed your channel.
@philparisi_
@philparisi_ 3 жыл бұрын
Hi In-Hwan Park! Thank you for the support and I'm glad I could help. Have a great weekend
@tylerwalters2224
@tylerwalters2224 2 жыл бұрын
@@philparisi_ what about for BCML to Cemu?
@philparisi_
@philparisi_ 2 жыл бұрын
@@tylerwalters2224 Hey there, I haven't worked with it personally, but this should help! pypi.org/project/bcml/
@Imran20091990
@Imran20091990 2 жыл бұрын
Can we use the same for python in Linux
@philparisi_
@philparisi_ 2 жыл бұрын
@@Imran20091990 probably, though I have not personally tested it. The PyCharm portion likely works, whereas the add to path will be different because you are no longer working with the Windows 10 GUI that I showed.
@GQElvie
@GQElvie 3 жыл бұрын
Phil, when I typed in echo %PATH% it returned only '%PATH%'. can you advise? Thanks
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Rock On Forever, interesting behavior. In general if you do something like: echo hello world the terminal will spit 'hello world' right back to you. That seems to be the case. This may be due to your operating system. Which are you using? Whichever the case, I recommend you look up how to view your Path Variable in that OS. You can also try using the GUI (later in the video) and go that route and avoid using %PATH%.
@GQElvie
@GQElvie 3 жыл бұрын
@@philparisi_ thank you for quick response. I will look into it. I subscribed and will tell my friends about your site. you have a smooth articulate way of speaking. have a great day.
@philparisi_
@philparisi_ 3 жыл бұрын
@@GQElvie aww thanks man, that's really cool of you. Good luck with everything and new content is in the works!
@Richard-zb3sy
@Richard-zb3sy 2 жыл бұрын
Mine still gives ModuleNotFoundError when running from CMD, even though it works perfect in pycharm, followed all steps in the video... I'm stuck!
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Richard, that's odd to hear it work in pycharm but not in cmd... If you would... open cmd run pip3 install package_name ^ does that give you the error? then run python import package_name ^ or does that give you the error?
@darkenergyhotep5793
@darkenergyhotep5793 2 жыл бұрын
Hi Phil Im a noob and in real need of help my error msg is "import bpy" I'm still super confused please assist. thanks .
@philparisi_
@philparisi_ 2 жыл бұрын
Hi there Dark Energy HOTEP, no worries as we all have been noobies once :) First things first, did you install Python properly and are you using an IDE? If not, I suggest watching this video kzbin.info/www/bejne/rXbYXoJ5pd5gb9E Then open up your cmd (command line) and simply type: python That should work by showing you the version you are using. If it shows an error than the install didn't go well. Next, type: import bpy If that throws an error, then the package isn't installed on your system. You need to install it using a package manage (pip and pip3 are the defaults that come with current python installs). Open up a NEW TERMINAL (not the one you typed 'python' in), type: pip3 install bpy If that is successful, to import the package, type: python import bpy Let me know how that goes! If you have a chance, please subscribe too :)
@mmadcrhi473
@mmadcrhi473 3 жыл бұрын
I tried to install (arcpy) library module but it says >>>>>>> Could not find a version that satisfies the requirement arcpy (from versions: none) ERROR: No matching distribution found for arcpy
@philparisi_
@philparisi_ 3 жыл бұрын
Hi MMAD Crhi, it sounds like arcpy can only run with certain versions of Python. This happens when Python updates but the package remains the same, relying on features or previous Python versions no longer supported in the newest Python version. I'd recommend looking into the arcpy's python version compatibility and see if that's the issue! Also, in general, try searching for the error message and see what comes up.
@felix1504
@felix1504 3 жыл бұрын
nice Video Phil, keep up the great work
@thehoodshooter1985
@thehoodshooter1985 3 жыл бұрын
Done all them steps still not working could you help me please my paths are in the right place but it's still not finding the win32api
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Fruadstars, sorry to keep you waiting! Can you post the exact error message? Also, are you running 32bit or 64bit? Did you download the proper python (the win32api may have something to do with bit incompatibility). What OS are you running?
@52weekhigh11
@52weekhigh11 3 жыл бұрын
i'm trying to install googleapiclient in Pycharm, and i tried the usual way and in the command line. I keep getting what I think is the same error in the terminal as i got in pycharm: Could not find a version that satisfies the requirement googleapiclient. Any idea where i'n going wrong? thanks.
@philparisi_
@philparisi_ 3 жыл бұрын
Hi 52 Week High, it sounds like googleapiclient may require a certain version of python to run. Could be older/newer than what you are running now. I suggest looking at the googleapiclient documentation and see if it indicates which versions of python it is compatible with!
@52weekhigh11
@52weekhigh11 3 жыл бұрын
@@philparisi_ one weird thing just happened. I did the python --version in the terminal and it came back with 2.7.16. But I'm on a new version of python. I just got the latest version of Pycharm too. New laptop. Anyway, does that tell you anything? thanks.
@philparisi_
@philparisi_ 3 жыл бұрын
@@52weekhigh11 sounds like you have multiple versions of python installed! Easiest solution is to remove all versions and start fresh with a new download. If that's not ideal, then change the python interpreter that you are using in PyCharm. When you are a new project you can select that right away. Then select the newer version of python (3.8 or something) and try the import googleapiclient and see if that works!
@52weekhigh11
@52weekhigh11 3 жыл бұрын
@@philparisi_ Thank you. When you. Are pips installed in folders/files or on the computer? i thought i was installing pips in each new file?
@philparisi_
@philparisi_ 3 жыл бұрын
@@52weekhigh11 pip3.exe and pip.exe should be in folders on your computer! This video may help in finding them kzbin.info/www/bejne/aXucZ5Ksrsurbrs
@DragoniteBrian
@DragoniteBrian 2 жыл бұрын
this did not work for me i used it on pymunk but it doesn't work i was missing cffi backend i downloaded cffi is there anyone that can help
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Dragonite Brian (great pokemon choice), I suggest you look into the specific documentation for installing those packages. If it doesn't work with the approaches in the video then there's likely something more you need to do, or install some other packages that isn't immediately apparent. Hit up their documentation online and follow their instructions!
@boboscurse4130
@boboscurse4130 Жыл бұрын
Running from the CMD, I get "Defaulting to user installation because normal site-packages is not writeable" Driving me nuts
@philparisi_
@philparisi_ Жыл бұрын
Hi there, check this out as it should help bobbyhadz.com/blog/python-defaulting-to-user-installation-because-normal-site-packages-is-not-writable
@arifabdi5220
@arifabdi5220 2 жыл бұрын
just using "terminal" and it work. my 2hours searching to fix the problem. thanks a lot sir apreciate
@philparisi_
@philparisi_ 2 жыл бұрын
Perfect Arif! Glad it could solve your problem. Have a great week.
@SeyriSamet
@SeyriSamet 3 жыл бұрын
It worked, you well deserved my like and comment man, I appreciate it 😍
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Seyri, thank you for the kind words! What would it take to deserve a sub? ;)
@_x4sh_
@_x4sh_ 6 ай бұрын
i did the command "pip install pycryptodome" and then did "pip list" to verify but it still doesnt work
@philparisi_
@philparisi_ 6 ай бұрын
Hi there, this sounds like you installed the package, but it was saved to a location that pip does not see. You can test this by installing another package, like pandas (pip install pandas) and seeing if that shows up in your ‘pip list’. When you install the package, it should show some file path as to where it is located. Be sure to add that filepath to your system’s PATH variable.
@_x4sh_
@_x4sh_ 6 ай бұрын
cryptodome shows up on pip list but it still doesnt work.@@philparisi_
@icarorezende6214
@icarorezende6214 3 жыл бұрын
Thank you so much man, solved my problem trying to import the module 'control'
@philparisi_
@philparisi_ 3 жыл бұрын
Awesome Icaro! Good luck with all your future programming and happy new year!
@shreyamkumar7210
@shreyamkumar7210 3 жыл бұрын
I have another problem i have installed the module but also it gives Me error no module name..... And i am using vs code please answer me what to do
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Deathstroke - try opening up IDLE and running the import command. If that works, then it's your virtual environment within VS code that's tripping you up on. In that case, try creating a new project and be sure to import 'all system packages'. Sometimes, the existing projects won't be able to find new packages the we pip install. Let me know if that helps!
@mateusbalotin7247
@mateusbalotin7247 2 жыл бұрын
Thank you!! Hope you have a great week!!!
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Mateus, thank you! You enjoy the week as well :)
@adriennekline5934
@adriennekline5934 2 жыл бұрын
I am trying to import my own package I created and I am not able to. Any suggestions?
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Adrienne, unfortunately I do not cover that process nor know how to do it! However, somewhere in the comments I believe someone had the same issue and solved it if you have the time to dig!
@sujeet2555
@sujeet2555 Жыл бұрын
Getting error " ModuleNotFoundError: No module named 'insightface", i have already installed it as i am getting messaged "Requirement already satisfied: six>=1.5 in c:\users\sujeet\appdata\local\programs\python\python311\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface) (1.16.0)". i am a newbie to python please help. getting error in stable diffusion installed on other drive .
@philparisi_
@philparisi_ Жыл бұрын
Hi there, it sounds like the package is installed on your system, which is good! If you are using an IDE or virtual environment then you also need to ‘install’ the package there as well. Can you tell me more about your setup?
@sujeet2555
@sujeet2555 Жыл бұрын
@@philparisi_ i think i got the issue but have to test it as i am away right now. The problem is python is installed twice. One is from python website and another that is in stable diffusion folder itself. I am installing the module and it is getting installed in other python directory not in stable diffusion one.. Should i uninstall the python and keep the stable diffusion's python? Or any other like adding path.. I want to keep it simple.
@philparisi_
@philparisi_ Жыл бұрын
@@sujeet2555 Hmmm I haven't worked directly with stable diffusion, but I imagine they have some sort of virtual environment or folder where you keep your python packages organized. Look deeper into how to install packages for stable diffusion. It would be sensible that you can have a version of python working for stable diffusion and have an alternative version working on your system.
@laumichael1038
@laumichael1038 Жыл бұрын
God thank you!! I finally found what they called terminal in pycharm. I have done installing in windows terminal and check it over and over again about PyPDF2 but no help with my pycharm code. That is weird pycharm is stand alone with Python! 🤣🤣
@philparisi_
@philparisi_ Жыл бұрын
Haha happy this helped you through it, Lau! It can be pretty painful starting up so I’m glad you are pushing through it :)
@annoyingbudd950
@annoyingbudd950 2 жыл бұрын
Hey!! i have installed pymongo, but it still gives me error on jupyter notebook "No module named pymongo" . Can you please help me?
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Annonying Budd, I don't cover Jupyter notebooks in this video but I found this article that might help! jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/
@philparisi_
@philparisi_ 2 жыл бұрын
This too www.msi.umn.edu/support/faq/how-do-i-install-python-packages-use-jupyter-notebooks
@annoyingbudd950
@annoyingbudd950 2 жыл бұрын
@@philparisi_ Thanks a lot 😃
@ToribieHaqi
@ToribieHaqi 3 жыл бұрын
u saved my life bro! i thought i will never code again
@philparisi_
@philparisi_ 3 жыл бұрын
Toribie I am glad you are sticking with it :D
@anjansiddharth5687
@anjansiddharth5687 3 жыл бұрын
thanks a lot, i checked lots n lots of video but ur video helped me solving the issue
@philparisi_
@philparisi_ 3 жыл бұрын
Anjansiddharth, thank you for the kind words! Glad to issue is fixed - happy coding!
@gluvydh
@gluvydh Жыл бұрын
does it like have to be python 39 or any type in path?
@philparisi_
@philparisi_ Жыл бұрын
It should be whatever version of python you have. For example Python38 or Python37
@ashishgudhekar3045
@ashishgudhekar3045 Жыл бұрын
from intertoos import islice output: from itertools import islice ModuleNotFoundError: No module named 'itertools' what should i do
@philparisi_
@philparisi_ Жыл бұрын
Open a command terminal, and „import itertools“ Then in your script try just, „import itertools“. If that works, try „from itertools import islice“
@fajardeh
@fajardeh 11 ай бұрын
thank you so much for this tutorial, i got problem import shap and my problem already solved.
@philparisi_
@philparisi_ 11 ай бұрын
Happy to help :) happy coding!
@thurstein2563
@thurstein2563 3 жыл бұрын
Thanks good man, you solved my problem so easy : )
@philparisi_
@philparisi_ 3 жыл бұрын
Sweet, happy to help Thustein! Have an awesome week.
@BoredomV0.3
@BoredomV0.3 2 жыл бұрын
what about no module named hcaptcha i saw no single sites about that and videos when i search hcaptcha it doesnt find it
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Chiron, if the package is ubiquitous it should be downloadable in some form by pip, check the hcaptcha documentation. If you are building from a git repository, they should provide instructions on how to install and utilize!
@BoredomV0.3
@BoredomV0.3 2 жыл бұрын
@@philparisi_ i dont know how to find that documention
@philparisi_
@philparisi_ 2 жыл бұрын
@@BoredomV0.3 what I would do is simply google the package name + documentation. Search "hcaptcha documentation" and "hcaptcha python install". It'll come up! If there's no documentation, how did you find the package? Reach out to whomever told you to use the package, too, they would be a good resource!
@BoredomV0.3
@BoredomV0.3 2 жыл бұрын
@@philparisi_ i found the documention but havent found anything there it shows only how to bypass hcaptcha or something
@snipzmattio5887
@snipzmattio5887 3 жыл бұрын
Thanks man! Really helped me out.
@philparisi_
@philparisi_ 3 жыл бұрын
Sure thing Snipz Mattio! Always great to hear from viewers - thank you for commenting.
@austangbadboi2187
@austangbadboi2187 2 жыл бұрын
i already have pygame installed but when I turned on my PC today, VS code said ModuleNotFoundError: no module named 'pygame' anyone know why this happened and how to fix
@austangbadboi2187
@austangbadboi2187 2 жыл бұрын
when i tried in cmd, it says: 'pip3' is not recognized as an internal or external command
@philparisi_
@philparisi_ 2 жыл бұрын
Hey there, if you open up cmd (or a command line) line and type 'import pygame' does that work? Otherwise, make sure VS code is using the correct python interpreter if that is an object for the project you are working.
@austangbadboi2187
@austangbadboi2187 2 жыл бұрын
@@philparisi_ thanks. none of these worked but I just reinstalled python and used pycharm instead and now have no isssues
@philparisi_
@philparisi_ 2 жыл бұрын
@@austangbadboi2187 ahh yes, sorry to hear it. It's sometimes your best move after a while. Glad it is now working for you!
@RashmiSharma-gf7vs
@RashmiSharma-gf7vs 3 жыл бұрын
Thanku so so much this helped me 😁😁😁.I tried so many tutorials none helped and I was exhausted but this helped thanku so much
@philparisi_
@philparisi_ 3 жыл бұрын
Woohoo glad it helped Rashmi! Have a great day!
@313bodak
@313bodak 2 жыл бұрын
yooo thanks buddy i was creating a space invader game and it was showing it thanks my guy!
@philparisi_
@philparisi_ 2 жыл бұрын
Glad it worked FuseBuzzFart!! Space invaders is a great game 🙌🏽🙌🏽
@aditimishra6531
@aditimishra6531 9 ай бұрын
i watched million of videos but this one solved the problem in a jiffy. Nailed it man. Thanks
@philparisi_
@philparisi_ 9 ай бұрын
Let‘s goooo happy to help!!! Have a good one!
@apoorvthedude
@apoorvthedude 3 жыл бұрын
Hi,I have installed it,but in my VScode it is showing Importe error no module name pywhatkit.I opened python idle,wrote import pywhatkit error showing there to.Help me
@apoorvthedude
@apoorvthedude 3 жыл бұрын
After writing pywhatkit --version,showing pywhatkit: command not found.
@philparisi_
@philparisi_ 3 жыл бұрын
Hey Apoorv, if you are getting the error in both VS code and in IDLE then the package has not been installed yet on your machine at all! Try running: pip3 install pywhatkit in a terminal!
@apoorvthedude
@apoorvthedude 3 жыл бұрын
@@philparisi_ Hi Phils,when i installed pywhatkit using terminal,it downloaded but after checking its version by pywhatkit --version.Command not found is showing. Plus in vscode the code is running if i type python3 file_name.py. I am using ubuntu
@apoorvthedude
@apoorvthedude 3 жыл бұрын
Why in vscode by clicking on run code button code is not running,plus why command not found is showing after checking its version. I typed in terminal: pip3 install pywhatkit to download it.
@philparisi_
@philparisi_ 3 жыл бұрын
@@apoorvthedude I am losing track a bit of what the error is, but to check your versions of installed python packages run: pip freeze or pip3 freeze
@IRedMonkey
@IRedMonkey 2 жыл бұрын
i need help whit this error... File "C:\Users 0d3m\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1711, in _find_head_package raise ImportError("No module named " + target_package_name) ImportError: No module named _bootlocale
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Joel, what are specifically calling in line 1711 in your code? It seems like you're trying to call a function from a package that may not be loaded onto the system. Try to installed that package (maybe _bootlocale) or potentially a bigger package that contains _bootlocale. Work with just the code from the line (isolate it into another .py file if needed) and try to get that running! -Phil
@mike8516
@mike8516 3 жыл бұрын
You legend!!!!!!!!!! Been searching for a fix for hours!!!
@philparisi_
@philparisi_ 3 жыл бұрын
Mike! Thank you commenting haha, this made my day. Have a good one!
@ashishbohara9151
@ashishbohara9151 2 жыл бұрын
Sir while I install requirements there is no error but when I run the demo code I get error matplotlib not found I tried installing Microsoft vs tools but still same
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Ashish, are you using an IDE or straight from command line? Check out a couple of the below comment threads, there are a few very productive conversations about your exact issue!
@ashishbohara9151
@ashishbohara9151 2 жыл бұрын
@@philparisi_ pls can u solve my problem and provide me a solution
@philparisi_
@philparisi_ 2 жыл бұрын
@@ashishbohara9151 it is hard to solve your problem without more information. Are you using an IDE or straight from command line? 1.) Open up your command line 2.) type: python 3.) type: import package_name Does that work? If it does work, then the problem is with your IDE.
@ashishbohara9151
@ashishbohara9151 2 жыл бұрын
@@philparisi_ yes it works
@ashishbohara9151
@ashishbohara9151 2 жыл бұрын
@@philparisi_ I m using vscode
@adonischhetri8372
@adonischhetri8372 3 жыл бұрын
Quick & Easy. Thanks Man !!
@philparisi_
@philparisi_ 3 жыл бұрын
You bet! Have a great week Adonis.
@mlocverm
@mlocverm 3 жыл бұрын
working! thanks :> has been struggle with for making discord for more than 1 hour, and this video really helped me! thankyou very much!
@philparisi_
@philparisi_ 3 жыл бұрын
Awesome! Happy programming!
@mlocverm
@mlocverm 3 жыл бұрын
thankyou! have a nice day! :D
@bilalprogram354
@bilalprogram354 2 жыл бұрын
ModuleNotFoundError: No module named 'pymunkoptions' This error appears, what do I do? This is the code I wrote: import arcade print(arcade.RELEASE)
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Bilal - thank you for reaching out. A couple things to check. 1. Open a command window 2. type: python 3. type: import package_name 4. type: whatever bit of code from that package you are trying to run Does that work? If it works, then the issue is with whatever IDE or Software you are using to run python. If your IDE or Software uses a virtual environment, you will need to add that package to the virtual environment. I suggest googling your specific IDE or Software. If the commands do not work in your command window, then the package is not on your system. Try installing the package again. 1. open command window 2. pip3 install package_name Then run the command window prompts again, and if they work, try running your code again! Also, if you are willing to subscribe that would be appreciated :)
@Shawcomedy
@Shawcomedy Жыл бұрын
2 minutes into the video solved my problem, Thankyou!!
@philparisi_
@philparisi_ Жыл бұрын
Love it - have a good one!
@zakaria2274
@zakaria2274 2 жыл бұрын
30 seconds and i found my solution U R A CHAMP
@philparisi_
@philparisi_ 2 жыл бұрын
Hahah awesome to hear Zakaria!! Comments like these help the channel grow - I appreciate the support :)
@smrithuls6899
@smrithuls6899 2 жыл бұрын
ModuleNotFoundError: No module named 'parser' ..... please help me to resolve this issue
@philparisi_
@philparisi_ 2 жыл бұрын
Hi Smirthul, watch the video again as well as view other comments - there are tons of helpful tips and tricks. Also, lookup the package online for its documentation, and see if there are any specific install instructions!
@QaimMehdiRizvi
@QaimMehdiRizvi 3 жыл бұрын
Thank you so much for such a great help.
@philparisi_
@philparisi_ 3 жыл бұрын
Have a great weekend, Dr. Qaim Mehdi!
@Arvind__-wu6zv
@Arvind__-wu6zv 3 жыл бұрын
I'm facing an error importing functions from another python program even when they are in same folder. could you suggest a solution
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Arvind, I'll help as much as I can! Are you importing function from another package or calling another .py file? I'm assuming you are have something like 'from import ' ? What is the exact error message? Have you following all the steps in this video for installing the ? Are you able to run import without error?
@Arvind__-wu6zv
@Arvind__-wu6zv 3 жыл бұрын
@@philparisi_ I'm actually importing from another .py file
@philparisi_
@philparisi_ 3 жыл бұрын
@@Arvind__-wu6zv ahh ok. Not my area of expertise, but I did find this which might help: stackoverflow.com/questions/2349991/how-to-import-other-python-files
@user-on7hx9ys5c
@user-on7hx9ys5c 11 ай бұрын
Phil, I have the second error ModuleNotFoundError: No module named 'src.exploit'
@philparisi_
@philparisi_ 11 ай бұрын
Hi Thiago, can you explain more about what you are doing and the lines of code you are running that cause the error?
@lonelomessi
@lonelomessi 2 жыл бұрын
I swear I was about a minute away from losing it, thank you so much for this...
@philparisi_
@philparisi_ 2 жыл бұрын
Ah man, classic. We've all been there. Glad I could help Al. Have a good one!
@mohamadwaked9860
@mohamadwaked9860 3 жыл бұрын
hello, it stills appearing to me no module named crypto.cipher, and i did all the steps in this slide, but the same appears, is there any other solution ? thanks!
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Mohamad, can you describe your situation? Are you using an IDE or something else? Were you able to download the package (pip3 install ) successfully? Without knowing you setup... a few random suggestions: - start a new PyCharm project (or whichever IDE) and be sure to include all the packages on your system - pypi.org/project/pycrypto/ from this guide, try pip install pycrypto , then in your script try 'from Crypto.Cipher import AES'.
@mohamadwaked9860
@mohamadwaked9860 3 жыл бұрын
@@philparisi_ when i run the comd: pip install pycrypto it gives me an error : C:\Users\user>pip install pycrypto Collecting pycrypto Using cached pycrypto-2.6.1.tar.gz (446 kB) Building wheels for collected packages: pycrypto Building wheel for pycrypto (setup.py) ... error
@mohamadwaked9860
@mohamadwaked9860 3 жыл бұрын
@@philparisi_ iam trying to build a code that is related to my cryptography course : The idea is to design and implement a hybrid crypto system that involves 3DES and RSA. 1) RSA must be used at the beginning to securely exchange the session keys of 3DES between Alice and Bob. 2) 3DES must be used for encryption/decryption of the exchanged data. 3) OFB should be used as a mode of operation to transfer the blocks of data in 3DES. iam trying to use the crypto library but something is going wrong, iam using python language in SPIDER program
@philparisi_
@philparisi_ 3 жыл бұрын
@@mohamadwaked9860 great, thank you for providing this! I recommend now searching the 'building wheel for pycrypto (setup.py) ... error'. This is something outside the scope of simply importing the package, as the error is occurring during the install. Try searching that error message online and seeing what comes up, likely there's an issue with dependencies or incompatibilities with software (python, OS, package, etc.).
@mohamadwaked9860
@mohamadwaked9860 3 жыл бұрын
@@philparisi_ thanks about your answer but unfortunately i didn't find any solution yet ...
@Strykiiid987
@Strykiiid987 3 жыл бұрын
I've done all these, pip3 and pip both can uninstall and install for me. Doing pip3 list shows the installed modules however in my programs using these modules I get the same "ModuleNotFoundError: No module named 'modulename' ". Anyone any ideas??
@philparisi_
@philparisi_ 3 жыл бұрын
Hi Daveboy, are you using PyCharm, another IDE or IDLE? If you are using an IDE be sure you bring in the python packages you need (this may mean downloading that package in your virtual environment). Let me know!
@Strykiiid987
@Strykiiid987 3 жыл бұрын
@@philparisi_ I am using pycharm. I did pip download in the pycharm built in terminal as well as windows command prompt. I'm really not sure where else to go from here
@philparisi_
@philparisi_ 3 жыл бұрын
@@Strykiiid987 ok, try this kzbin.info/www/bejne/sHSyZH6ui5ethqs it's specific to PyCharm and it's the only other way I can think of to get things working for you!
Importing Your Own Python Modules Properly
9:56
NeuralNine
Рет қаралды 213 М.
How to Install PIP in Python | PIP Install in Python (2024)
6:43
ProgrammingKnowledge
Рет қаралды 19 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 169 МЛН
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 14 МЛН
Python for Beginners - Learn Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 17 МЛН
How to Fix PyCharm Import Error and Setup Your Interpreter
9:47
Tech With Tim
Рет қаралды 536 М.
ModuleNotFoundError: No module named 'distutils' in Python Solved
9:00
BYTECH TECHNOLOGIES
Рет қаралды 21 М.
[SOLVED] pip is not recognized as an internal or external command
5:29
CS CORNER Sunita Rai
Рет қаралды 87 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 796 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,8 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 4,2 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,8 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 15 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН