0

ここからパッケージwxPython-2.8.7.1.spkgをインストールしたい場合

Sageのターミナルでは、構文エラーが発生します。私がSageターミナルに書いたものと結果は次のとおりです。

sage: sage -i wxPython-2.8.7.1.spkg
------------------------------------------------------------
   File "<ipython console>", line 1
     sage -i wxPython-RealNumber('2.8').gen(7).1.spkg
                    ^
SyntaxError: invalid syntax

パッケージの直接アドレスも使用しますが、結果は同じです。

 sage: sage -i http://www.sagemath.org/packages/experimental/wxPython-2.8.7.1.s>
------------------------------------------------------------
   File "<ipython console>", line 1
     sage -i http://www.sagemath.org/packages/experimental/wxPython-RealNumber('2.8').gen(7).1.spkg
                ^
SyntaxError: invalid syntax

パッケージもダウンロードしてローカルアドレスを使用しましたが、結果は同じでした。

4

1 に答える 1

1

Sageを起動する前に、コマンドラインからこれを行う必要があります。それ以外の場合は使用できます

sage: install_package("wxPython")

これは現在私のためにダウンロードしています...そして失敗しました:

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
Error configure wx widgets.

real    0m13.972s
user    0m2.791s
sys 0m5.232s
************************************************************************
Error installing package wxPython-2.8.7.1
************************************************************************

それらの線に沿って、これは実験的なspkgのリストでそれが言っていることです、これは1つです:

これらは実験的です!彼らはおそらくあなたのためにまったく機能しないでしょう!自己責任!これらの多くは、どのプラットフォームでも正常に構築されたことはありません。

だから買い手は注意してください!

于 2012-06-27T01:24:24.637 に答える