- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在 DiveIntoPython.com 上工作,但在导入工作时遇到问题。我已经在 windows xp prof 环境中安装了 ActiveState 的 Pythonwin。
在网站上,有一个练习涉及“导入odbchelper”和odbchelper。名称
http://www.diveintopython.org/getting_to_know_python/testing_modules.html
当我以交互方式运行它时,我得到:
>>> import odbchelper
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
ImportError: No module named odbchelper
>>> odbchelper.__name__
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
NameError: name 'odbchelper' is not defined
我猜测要么是我没有正确设置路径,要么是当我运行“sys.path”时,其中一个文件夹中不存在引用的模块。有什么想法吗?
提前致谢
最佳答案
这个模块肯定不是用Python2.6打包的(刚刚在我的机器上尝试过)。您是否尝试过用谷歌搜索该模块可能在哪里?
考虑这个post .
关于python - activestate pythonwin 缺少导入模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1583947/
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎与 help center 中定义的范围内的编程无关。 . 已关闭 8 年前。 Improve
我正在 DiveIntoPython.com 上工作,但在导入工作时遇到问题。我已经在 windows xp prof 环境中安装了 ActiveState 的 Pythonwin。 在网站上,有一个
我需要使用特定的退出代码吗? Win32::Process::Create( $ProcessObj, "C:\\Program Files (x86)\\Mozilla Firefo
my CPAN modules 之一是 not available在 ActivePerl 上通过它的 ppm效用。显然我对这个模块的单元测试太彻底了,ActiveState's build proc
我在 Windows 7 64 位上安装了 ActiveState Perl 5.20 32 位。我想从 CPAN 安装 mudules 但总是这样结束: Checksum for C:\Perl\c
我正在尝试创建我的菜单,其中包含应用程序中多个链接的下拉菜单。 我希望它在下面的链接之一处于事件状态时处于“事件”状态。 我的下拉列表中的链接处于事件状态,并且下拉列表处于事件状态,但我从未让它们一起
我在 TCL 的 MAC OSX 版本上运行了以下脚本,它运行良好,但是它卡在 Windows 7 机器上的 ActiveState TCL 上 proc send_simple_message {r
根据 Expect perldoc,此模块不适用于 ActiveState Perl。 perldoc 说一种替代方法是使用 Cygwin。我真的没有安装这个的选项。 还有什么建议吗? 我需要使用 p
基本上,在文件流上使用以下代码,我得到以下内容: $basis = $2 * 1.0; $cost = ($basis - 2500.0) ** 1.05; # The above should en
关闭。这个问题是opinion-based .它目前不接受答案。 想改善这个问题吗?更新问题,以便可以通过 editing this post 用事实和引文回答问题. 10 个月前关闭。 Improv
运行以下命令 perl -e "for (my $i = 0; $i chcp 737 事件代码页:737 C:\>回波αβγδεζ | od -t x1 0000000 98 99 9a 9b 9c
我正在尝试为 mongodb 示例安装 OpenSSL,但无法安装某些 perl 包 我安装了ActivePerl 5.28,重启电脑,加了路径变量,ppm还是不行 当我在 cmd 中输入 ppm 时
我有一个 Perl 脚本,它需要两个需要一段时间才能运行的命令行参数。我正在使用 ActiveState Perl 来运行它。我可以用 wperl script.pl arg1 arg2 调用它从命令
我曾经删除过我的ActivePerl一次,所有安装的模块都丢失了。所以现在我对这类问题非常小心。由于某种原因,我想使用Strawberry Perl现在,同时保持使用 ActiveState 的 Ac
所以我们正在迁移服务器。啊。一台机器上有很多 Perl 东西,我们需要在另一台机器上设置。 有没有办法导出/导入所有已安装软件包的列表,以便我可以将它们安装在新服务器上,而不是一个一个地查找?(使用
我有一个 Perl 脚本,我仍在尝试调试,在此过程中,我注意到它在 ActivePerl 和 Strawberry Perl 下运行的行为有所不同。 这让我想知道 Perl 脚本如何检测它在这些风格中
我想将 TkTreeCtrl 用于我正在构建的 GUI。我已经安装了 ActivePython 3.3.4.1 和 ActiveState Tkinter 8.5,它通过了自测。我尝试了来自 http
我已经安装了 ActiveState。由于安装 LibXML 很容易,我安装了 Strawberry。所以目前,我有 2 个 perl 程序,ActiveState 和 Strawberry。要使用
我在 Komodo Edit 中使用 ActiveState perl。我收到以下错误。 Can't locate MyGengo.pm in @INC (@INC contains: C:/Perl
我有一个 Perl 程序,它执行如下操作: #!/usr/bin/env perl use strict; use warnings; my $exe = "C:\\project\\set_e
我是一名优秀的程序员,十分优秀!