在Linux和Windows上安装wxPython [英] installing wxPython on Linux and Windows

查看:93
本文介绍了在Linux和Windows上安装wxPython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我在桌面计算机上用Linux取代了Win2k。主要使用

多平台软件我认为这很容易。这并不像预期的那样容易让wxPython工作。似乎没有SuSE RPM

所以我从源码安装。这是我的步骤(gtk 2.4已经安装了

):


- 内置的wxWidgets(.configure --enable-unicode)

- 内置wxPython(python setup.py安装)

错误:你应该使用wx-config程序进行编译

- 尝试使用各种选项的wx-config

- 检查(巨大)错误输出更紧密:有一条消息

"用法:wx-config [options]"在开始时

- 调试setup.py:消息是由wx-config选项引起的unicode = no

- 调试config.py:wx-config选项unicode = no是由UNICODE引起的= 0

- 设置UNICODE = 1,下次构建,错误:编译器找不到stc.h

- 设置BUILD_STC = 0和其他一些BUILD_s以及

- 我工作过!启动了demo.py,启动了启动画面 - 错误

demo'的Main.py''DemoCodeEditor''对象没有属性''编辑''

- 啊,STC用于StyledTextControl!再次设置BUILD_STC = 1但是我怎么能获得styledTextControl?

- 下载/构建的scintilla,但是scintilla.a的插槽在哪里?

- 意识到我必须单独构建STC(wxWidgets''contribs)。

- 构建wxPython,启动demo.py - 它最终工作了!


带走我所有的尝试和死角约。 8小时。


Win2k上的相同任务:下载wxPython-setup.exe,双击,完成。

大概给我一个。 1分钟。这让我很震惊。为什么Linux上的某些任务如此困难?b $ b在Windows上如此简单?毕竟wxPython / Win和wxPython / Lin

是由相同的开发人员制作的。我的猜测:Linux上的软件部署

基础设施需要改进。


免责声明:我不想责怪任何人。 wxPython是一个很好的

软件,否则我就不会那么努力了。

它的工作原理。


-

---------------------------------------- ---------------------------

Peter Maas,M + R Infosysteme,D-52070亚琛,电话+ 49-241-93878-0

电子邮件''cGV0ZXIubWFhc0BtcGx1c3IuZGU = \ n''。decode(''base64'')

------ -------------------------------------------------- -----------

Recently I replaced Win2k with Linux on my desktop computer. Using mostly
multi-platform software I thought this would be easy. It was not as
easy as expected getting wxPython to work. There seemed to be no SuSE RPM
so I installed from source. Here are my steps (gtk 2.4 was already
installed):

- Built wxWidgets (.configure --enable-unicode)
- Built wxPython (python setup.py install)
error: "you should use wx-config program for compilation"
- Tried wx-config with various options
- Examined (huge) error output more closely: There was a message
"Usage: wx-config [options]" right at the beginning
- Debugged setup.py: message was caused by wx-config option unicode=no
- Debugged config.py: wx-config option unicode=no was caused by UNICODE=0
- Set UNICODE=1, next build, error: compiler couldn''t find stc.h
- Set BUILD_STC = 0 and some other BUILD_s as well
- I worked! started demo.py, splash screen started up and - error in
demo''s Main.py ''DemoCodeEditor'' object has no attribute ''editor''
- Ah, STC is for StyledTextControl! set BUILD_STC = 1 again but how can
I get styledTextControl?
- Downloaded/built scintilla, but where''s the slot for scintilla.a?
- Realized that I had to build STC (wxWidgets'' contribs) separately.
- Built wxPython, start demo.py - it worked FINALLY!

Took me with all tries and dead ends approx. 8 hours.

Same task on Win2k: download wxPython-setup.exe, double-click, done.
Took me approx. 1 minute. This strikes me. Why are some tasks so hard
on Linux and so easy on Windows? After all wxPython/Win and wxPython/Lin
are made by the same developers. My guess: the software deployment
infrastructure on Linux needs to be improved.

Disclaimer: I don''t want to blame anyone here. wxPython is a fine
piece of software otherwise I wouldn''t have tried so hard to get
it working.

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail ''cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n''.decode(''base64'')
-------------------------------------------------------------------

推荐答案

>在Win2k上执行相同的任务:下载wxPython-setup.exe,双击,完成。
> Same task on Win2k: download wxPython-setup.exe, double-click, done.
找我约。 1分钟。这让我很震惊。为什么Linux上的某些任务如此难以在Windows上如此简单?毕竟wxPython / Win和wxPython / Lin
是由同一个开发人员制作的。我的猜测:Linux上的软件部署基础设施需要改进。
Took me approx. 1 minute. This strikes me. Why are some tasks so hard
on Linux and so easy on Windows? After all wxPython/Win and wxPython/Lin
are made by the same developers. My guess: the software deployment
infrastructure on Linux needs to be improved.




在debian上,它是


apt-get install wxPython2.5.3

所以它显然取决于你的发行版。这是不幸的是

当然是真的...


我认为窗户安装更简单有几个原因:

- 在unix上,程序通常链接到

计算机上可用的库,因此缺少依赖项会导致安装失败。在Windows上,

安装程序会安装所有依赖项 - 并且可能会覆盖

系统dll(CorelDraw 7在1998年杀死了Exchange)

>
- 有更多商用的Windows安装程序 - 也许

,因为UNIX上的免费软件开发人员不太愿意为这些工具或管理员支付费用可以信任这样的系统更容易用配置等处理



- 各种硬件_and_软件运行的unix系统很多

更大,所以编译是唯一的方法,如果你不想支持b / b $ b $多种二进制文件(并且有可用于这些的硬件)。在窗户上,

你可以在家里编译并安装在工作中的大铁上。


所有的积分当然只是一个解释,没有任何借口 - 那里_could_

是更好的安装人员。正如我所展示的那样,在已经可用的部分,例如

for debian处理依赖关系通常要好得多,而且更容易使用
用于在线更新。我想我们必须等到一致的依赖性

检查等等 - 也许LSB可以帮助我们。


-

问候,


Diez B. Roggisch



On debian, it

apt-get install wxPython2.5.3

So it clearly depends on you distribution. That this is unfortunate is of
course true...

I think there are several reasons for windows having easier installation:

- on unix, progams usually are linked to libraries available on the
machine, so missing dependencies make the installation fail. On windows,
the installer installs all the dependencies - and possibly overwrites
system dlls (CorelDraw 7 killed Exchange by that, back in 1998)

- there is more commercially available installers for windows - maybe
because free software developers on UNIXes are less keen to pay for such
tools, or the admins of such systems can be trusted to be more apt dealing
with configure and the like.

- the variety of hardware _and_ software unix systems run on is much
larger, so compiling is the only way to go if you don''t want to support a
plethorea of binaries (and have hardware available for these). On windows,
you can compile at home and install it on the big iron at work.

All the points are of course only an explanation, no excuse - there _could_
be better installers. As I showed, in parts that''s already available, e.g.
for debian which handles dependencies usually much better and is easier to
use for online updates. I think we have to wait until consistent dependency
checking and so on are established - maybe LSB helps us there.

--
Regards,

Diez B. Roggisch


|在debian上,它是
|

| apt-get install wxPython2.5.3

|

|所以这显然取决于你的发行。

|

|这是不幸的当然是真的......

| ....


Diez ....


wxPython2.5.3的软件包目前可用

对于Debian Sid /不稳定但不适合Sarge /测试......


-

Cousin Stanley

人类

亚利桑那州凤凰城
| On debian, it
|
| apt-get install wxPython2.5.3
|
| So it clearly depends on you distribution.
|
| That this is unfortunate is of course true...
| ....

Diez ....

The package for wxPython2.5.3 currently is available
for Debian Sid/unstable but not for Sarge/testing ....

--
Cousin Stanley
Human Being
Phoenix, Arizona


Diez B. Roggisch schrieb:
Diez B. Roggisch schrieb:
同样的任务Win2k:下载wxPython-setup.exe,双击,完成。
接近我。 1分钟。这让我很震惊。为什么Linux上的某些任务如此难以在Windows上如此简单?毕竟wxPython / Win和wxPython / Lin
是由同一个开发人员制作的。我的猜测:Linux上的软件部署基础设施需要改进。

关于debian,它是apt-get install wxPython2.5.3
Same task on Win2k: download wxPython-setup.exe, double-click, done.
Took me approx. 1 minute. This strikes me. Why are some tasks so hard
on Linux and so easy on Windows? After all wxPython/Win and wxPython/Lin
are made by the same developers. My guess: the software deployment
infrastructure on Linux needs to be improved.

On debian, it

apt-get install wxPython2.5.3




我听过Debian'的安装系统的赞美,但是对于最新版本,Debian非常保守。有一些软件包(例如Python,
PostgreSQL,Subversion)我想要有最新的版本。

我不想太紧绑定到

Linux发行版的更新周期。

所有这些点当然只是一个解释,没有任何借口 - 那里_could_
是更好的安装程序。正如我所展示的那样,已经可用的部分,例如,对于处理依赖关系的debian来说,通常要好得多,并且更容易用于在线更新。我认为我们必须等到一致的依赖性检查等等 - 也许LSB可以帮助我们。



I have heard praises of Debian''s install system but Debian is quite
conservative with latest versions. There are some packages (e.g. Python,
PostgreSQL, Subversion) where I''d like to have the latest versions.
I don''t want to be too tightly bound to the update cycles of the
Linux distribution.
All the points are of course only an explanation, no excuse - there _could_
be better installers. As I showed, in parts that''s already available, e.g.
for debian which handles dependencies usually much better and is easier to
use for online updates. I think we have to wait until consistent dependency
checking and so on are established - maybe LSB helps us there.




如果有一个共同的规范如何查询和更改

系统和应用程序的配置数据这将是

真有帮助。


-

--------------------------------------------- ----------------------

Peter Maas,M + R Infosysteme,D-52070 Aachen,电话+ 49-241-93878 -0

电子邮件''cGV0ZXIubWFhc0BtcGx1c3IuZGU = \ n''。decode(''base64'')

----------- -------------------------------------------------- ------



If there would be a common specification how to query and change
configuration data of the system and applications this would be
really helpful.

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail ''cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n''.decode(''base64'')
-------------------------------------------------------------------


这篇关于在Linux和Windows上安装wxPython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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