![]() These are the possible causes why you are getting this error in your python project: Why this Modulenotfounderror: no module named discord occur? Here’s an analogous example:Īfter you’ve completed the preceding steps, run our script again. Step 4: Now install the library using pip install discord.pycommand. Step 3: Open the Scripts directory in the command prompt by using the cd command and the previously copied location. Also, ensure that the pip file is present in the folder. Step 2: After you browse and open the Scripts folder and copy its location. ![]() Step 1: Open the command prompt and type where python to navigate to the folder where you installed Python. If the error persists it may be because the installed pip is but the script is in the wrong path.įollow the steps below to resolve the path problem in Windows. If the error continues check your python version and make sure you are installing the package using the correct Python version. Use the following command: sudo apt install libffi-dev libnacl-dev python3-dev Note: If you are using Linux install the prerequisite first when installing discord.py voice. When using python 3 (could also be pip3.10 depending on your version) If you will get voice support rather than discord.pyĭo the following command to install voice support of discord.If you are using for python 3 it could also be pip3.10 depending on your version When you don’t have pip in your PATH environment variable ![]() When using python 3 it could be also be pip3.10 depending on your version If you are using virtual environment or using Python 2 Open your terminal or command prompt and install discord.py by the following command: To solve this error the following ways you might consider to follow.
0 Comments
Leave a Reply. |