Bash: Python3: command not found (Windows, discord.py)

Python

I've been trying to configure the discord API discord.py and for the purpose of running the Red-MusicBot on my server. I've installed Python 3.5 and added the PATH variables (I clicked the "Add Python to PATH" option in install). Here's what my path variables currently look like:

C:\Users\Corey Rigney\AppData\Local\Programs\Python\Python35\Scripts\ C:\Users\Corey Rigney\AppData\Local\Programs\Python\Python35\

Those are the only ones related to Python. Now, as part of discord.py's install process, it wants me to run this command in Git Bash:

$ git clone https://github.com/Rapptz/discord.py 

$ cd discord.py 

$ python3 -m pip install -U.[voice]

The first two lines work perfectly, but the third line returns:

bash: python3: command not found

I also cloned pip from GitHub as an attempted fix, although the python install site says it comes packaged with 3.5.

I'm running Windows 10, 64-bit.

The overall goal of this is to install a discord music bot if it would help I can post the errors I get when trying to run that.


If you want to unleash your potential in this competitive field, please visit the Python course page for more information, where you can find the Python tutorials and Python frequently asked interview questions and answers as well.

2
Answers

Replies


In Windows operating system, it is usually python. Python3 is applicable in UNIX-based platforms like Linux and OS X. So try the below command,



python -m pip install -U .[voice]


 

 


There will be a python.exe file in your python installation path (c:\\<Installationpath>\Python3.6.0). Copy the file, paste it in the same location, and rename it to python3.exe. Open a new command prompt and try your command with python3. It will work now.


 

 
 

This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.
WhatsApp
To Top