Bash:Python3:找不到命令(Windows,discord.py) [英] Bash: Python3: command not found (Windows, discord.py)

查看:183
本文介绍了Bash:Python3:找不到命令(Windows,discord.py)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试配置discord API discord.py,目的是在服务器上运行Red-MusicBot.我已经安装了Python 3.5,并添加了PATH变量(我在安装中单击了将Python添加到PATH"选项).这是我的路径变量当前的样子:

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\

仅有的几个与Python相关.现在,作为discord.py安装过程的一部分,它希望我在Git Bash中运行以下命令:

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

我也从GitHub克隆了pip作为尝试的修复程序,尽管python安装站点说它与3.5一起打包.

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

我正在运行64位Windows 10.

I'm running windows 10, 64-bit.

这的总体目标是安装一个不和谐的音乐bot,如果它可以帮助我发布尝试运行该错误的错误消息.

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.

推荐答案

在Windows上,python可执行文件的常规名称是 python.exe (控制台程序)或 pythonw.exe (用于GUI程序).

On Windows the normal name for the python executable is python.exe (console program) or pythonw.exe (for GUI programs).

在某些平台上,python可执行文件有时称为 python3 ,其中默认( python )是旧的python2.在许多基于UNIX的平台上(包括Linux和在OS X)系统中,系统实用程序使用python 2,对其进行更改可能会对这些平台产生不良影响,因此命名为"python3".

The python executable is sometimes called python3 on some platforms, where the default (python) is the old python 2. On many UNIX-based (inc. Linux and OS X) systems, python 2 is used by system utilities, changing it could have bad consequences on those platforms, hence the name "python3".

在Windows上应该没问题-Windows上还有其他问题,但是除非尝试使用多个python版本,否则您不会遇到这些问题.

On Windows you should be fine - there are other issues on Windows but you won't get those unless you try to use more than one python version.

这篇关于Bash:Python3:找不到命令(Windows,discord.py)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆