Why is a package I have installed not getting recognised

by sp0nGe66   Last Updated October 10, 2019 02:26 AM

I have installed a package named hypixel for my discord bot using pip install python. It finished installing without any errors. At the top of my script I have import hypixel. But when I try and run it I get this error:

File "D:\Documents\Discord Bot\Addicts Discord Bot\bot.py", line 1, in <module>
    import hypixel
ModuleNotFoundError: No module named 'hypixel'

I am not sure if this is too relevant but my pip isn't the latest version and I get an error when I try and update it.



Answers 2


Instead of using pip install python, use pip install hypixel. Then try to import it in your code using import hypixel.

Usama
Usama
October 10, 2019 02:24 AM

In your question you say you used pip install python, did you mean to say pip install hypixel?

Also if you use python3 but have python3 installed make sure you use pip3.

You can install this with sudo apt-get install python3-pip (assuming you use a debian based distro). Then use sudo pip3 install hypixel

exciteabletom
exciteabletom
October 10, 2019 02:24 AM

Related Questions


Updated August 12, 2018 15:26 PM

Updated August 16, 2019 03:26 AM

Updated August 23, 2019 19:26 PM

Updated September 14, 2019 16:26 PM