Octave 无法识别 python 已安装 [英] Octave not recognizing python is installed

查看:88
本文介绍了Octave 无法识别 python 已安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在八度中安装符号包,我在正确的目录中有该包,这是我在八度中的当前目录,但是当它尝试安装该包时,它给我一个错误,说它找不到Python.我正在使用 octave version 4.0.0 并且刚刚安装了 Python 2.7.10.这是我尝试安装的代码:

I am trying to install the symbolic package in octave, I have the package in the correct directory, which is my current directory in Octave, but when it tries to install the package it gives me an error saying it can't find python. I'm using octave version 4.0.0 and just installed Python 2.7.10. Here is my code attempting the install:

>> pkg install symbolic-2.2.1.tar.gz
configure: error: Failed to find Python
checking for python... no

pkg: error running the configure script for symbolic.
error: called from 'configure_make' in file C:\Octave\Octave- 4.0.0\share\octave\4.0.0\m\pkg\private\configure_make.m near line 79, column 9

如果相关,Python 安装在八度目录之外.如果有更简单的方法来获得八度的符号能力,请告诉我.

In case it is relevant, Python is installed outside of the octave directory. If there is an easier way to get symbolic capabilities in octave please let me know.

推荐答案

首先打开提示并运行 'python'.如果 python 控制台没有打开并且提示说这个命令不被识别,你有同样的问题,我能够修复只是将 python 添加到环境路径.

First open the prompt and run 'python'. If the python console is not opened and the prompt says that this command is not recognized, you have my same problem and I was able to fix just adding python to the environment path.

修复:

  1. 按住 Win 并按 暂停.
  2. 点击高级系统设置.
  3. 点击环境变量.
  4. ;C:\python27 附加到 Path 变量.
  5. 重启命令提示符.
  1. Hold Win and press Pause.
  2. Click Advanced System Settings.
  3. Click Environment Variables.
  4. Append ;C:\python27 to the Path variable.
  5. Restart Command Prompt.

这篇关于Octave 无法识别 python 已安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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