简体   繁体   English

找不到工作的 python 解释器。 团结,Firebase

[英]Could not find a working python interpreter. Unity, Firebase

Could not find a working python interpreter.找不到工作的 python 解释器。 Please make sure one of the following is in your PATH: python python3 python3.8 python3.7 python2.7 python2请确保您的 PATH 中包含以下内容之一: python python3 python3.8 python3.7 python2.7 python2

I installed python 3.10.4 Path is set in environment variables.我安装了 python 3.10.4 路径在环境变量中设置。 Still not working.还是行不通。

How to set path:如何设置路径:

  1. Find the path to install Python on your computer.在您的计算机上找到安装 Python 的路径。 To do this, open the Windows search bar and type python.exe.为此,请打开 Windows 搜索栏并键入 python.exe。 Select the Open file location option. Select 打开文件位置选项。
  2. Copy path of python folder.复制 python 文件夹的路径。
  3. To add Python To PATH In User Variables: Open My Computer\Properties\Advanced system settings\Advanced Environment Variables\Environment Variables.要将 Python 添加到 PATH 在用户变量中:打开我的电脑\属性\高级系统设置\高级环境变量\环境变量。
  4. In the User Variables menu, find a variable named Path.在用户变量菜单中,找到一个名为 Path 的变量。 Then paste the path you copied earlier into the Variable Value option using Ctrl+v and click OK.然后使用 Ctrl+v 将之前复制的路径粘贴到“变量值”选项中,然后单击“确定”。
  5. if you cannot find this variable, you may need to create it.如果找不到此变量,则可能需要创建它。 To do this, click New.为此,请单击新建。 Then, in the variable name form, enter the path and paste your Python path into the variable value field.然后,在变量名称表单中,输入路径并将您的 Python 路径粘贴到变量值字段中。 6.You can also add Python to the PATH system variable. 6.您也可以将Python添加到PATH系统变量中。 Although this is just an alternative and not needed if you have already added it to the Users variables.尽管这只是一种替代方法,如果您已将其添加到用户变量中,则不需要。

To use the System Variables option, follow the steps highlighted above to copy the Python path and its script.要使用系统变量选项,请按照上面突出显示的步骤复制 Python 路径及其脚本。 Then go back to environment variables.然后 go 回到环境变量。 Then, in the system variables segment, look for a variable named Path.然后,在系统变量段中,查找名为 Path 的变量。 Click this variable and click Edit.单击此变量,然后单击编辑。

在此处输入图像描述

在此处输入图像描述

It is working now.它现在正在工作。 We have to set paths in both user variables and system variables.我们必须在用户变量和系统变量中设置路径。 Then restart the PC.然后重启电脑。

If you have already set the path and can see only python and/or python 3 in the destination folder: Type "python" in cmd.如果您已经设置了路径并且在目标文件夹中只能看到 python 和/或 python 3: 在 cmd 中键入“python”。 It will automatically take you to Windows Store, Install python 3.8 from there.它会自动将您带到 Windows 商店,从那里安装 python 3.8。 Or you can externally install python 3.8 for latest Firebase plugin.或者您可以在外部安装 python 3.8 以获得最新的 Firebase 插件。 This removes the error.这消除了错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VS Code 需要一个 Python 解释器。 为什么这是必要的? - VS Code needs a Python Interpreter. Why is this necessary? 找不到python解释器-Opencv cmake错误 - Could not find python Interpreter - Opencv cmake error 我的SDK有自己的python解释器。 如何为其安装模块? - My SDK has its own python interpreter. How do I install modules for it? python time.time() 和 time.perf_counter() 在 window、ubuntu 和 Z2567A554EC9305EB18AC2DZ8 解释器中的结果不同。 它来自病毒吗? - python time.time() and time.perf_counter() are different result in window, ubuntu and web based interpreter. is it from viirus? 脚本在解释器中运行奇怪。 -i标志有什么影响? - Script runs strangely in interpreter. What is the effect of the -i flag? 带有 docker 解释器的 VS 代码。 无法导入模块 - VS code with docker interpreter. Can't import module Python:ImportError:DLL加载失败:找不到指定的模块,控制台正在工作,但是Project Interpreter NO - Python: ImportError: DLL load failed: The specified module could not be found, Console Working, but Project Interpreter NO 找到 Python 解释器的完整路径? - Find full path of the Python interpreter? PTVS 找不到 Python 解释器? - PTVS cant find Python interpreter? 用Python编写的口译员无法正常工作 - Interpreter written in Python not working properly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM