简体   繁体   English

Octave - 如何在Windows上安装软件包

[英]Octave - How to install packages on Windows

Question

Due to the issue in Fix for Octave urlread causing Peer certificate cannot be authenticated with given CA certificates , I cannot install Octave packages on Windows. 由于Fixave Octave urlread中的问题导致Peer证书无法使用给定的CA证书进行身份验证 ,因此无法在Windows上安装Octave软件包。

Please suggest other ways to install. 请提供其他安装方法。 Particularly I would like to go through Gradients, Gradient Plots and Tangent Planes which requires Symbolic package. 特别是我想要通过Gradients,Gradient Plots和Tangent Planes ,它们需要Symbolic包。

EDIT: this bug is no longer present in Octave v4.2.1, and the issue described in the Question should no longer occur. 编辑:Octave v4.2.1中不再出现此错误,并且不再出现问题中描述的问题。

Yes, there appears to be a known issue logged on the bug tracker with the current release version of Octave (4.2.0) on windows being unable to connect to https due to the curl issue you identified in the linked discussions/questions. 是的,由于您在链接的讨论/问题中发现的卷曲问题,在Windows上无法连接到https的当前版本的Octave(4.2.0)上出现了已知问题。 That bug report and the original help list discussion summarize the certificate issue and problem verification. 该错误报告和原始帮助列表讨论总结了证书问题和问题验证。 It should be fixed in the next Octave release. 它应该在下一个Octave版本中修复。

This, however, does not prevent you from installing packages. 但是,这不会阻止您安装软件包。 It only prevents you from using the program to go fetch packages to be installed. 它只会阻止您使用该程序来获取要安装的程序包。 You are still able to go to the Octave Forge package site , manually download a package file, and then as described in the Octave manual and help for pkg run the install command. 您仍然可以访问Octave Forge软件包站点 ,手动下载软件包文件,然后按照Octave手册和pkg的帮助运行install命令。

Eg, you could download symbolic-2.4.0.tar.gz and save it to your current working directory. 例如,您可以下载symbolic-2.4.0.tar.gz并将其保存到当前的工作目录。 Then within octave, issue the following from the command line: 然后在八度音程中,从命令行发出以下命令:

pkg install symbolic-2.4.0.tar.gz

NOTE: symbolic currently requires Python and Sympy installed. 注意:符号当前需要安装Python和Sympy。 If you don't already have this on your Windows machine, the package maintainer has a separate self-contained package for Windows that can be obtained from the author's github repository . 如果您的Windows机器上还没有这个,那么软件包维护者有一个单独的Windows自包含软件包,可以从作者的github存储库中获取 In this case you would download the package and run the command: 在这种情况下,您将下载该包并运行该命令:

pkg install symbolic-win-py-bundle-2.4.0.zip

Another more tedious option would be for you to compile your own copy from development sources, as the fix has supposedly been pushed to the mxe-octave repository. 另一个更乏味的选择是您从开发源编译自己的副本,因为该修复程序应该被推送到mxe-octave存储库。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM