使用 easy_install 安装 Mechanize

发布于 2024-11-16 07:14:44 字数 105 浏览 5 评论 0原文

我已经在 Windows 7 管理员帐户上使用 easy_install 安装了 mechanize。但是,当我尝试在不同帐户上设置/运行另一个需要机械化的程序时,它找不到它。 有什么解决办法吗?

I've installed mechanize using easy_install on Windows 7 Admin account. However, when I try to setup/run another program that needs mechanize on a different account, it doesn't find it.
Any solutions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

短叹 2024-11-23 07:14:44

你的Python安装位置在哪里?

你是如何运行easy_install的?

easy_install 可能使用默认用户帐户权限,您需要手动更改文件权限/所有权,以便非管理员可以查看文件。

一般来说,easy_install 仅供单用户安装(开发使用)。包括其他平台(Linux、UNIX)。如果您希望分发在您的操作系统上运行良好的应用程序/软件包,您需要以适合该操作系统的格式重新打包它。

lxml 等。Python 包附带 .EXE 安装程序。也许您可以检查这些软件包的安装程序是如何完成的,并为 mechanize 应用相同的安装程序创建脚本。

What's your Python installation location?

How did you run easy_install?

easy_install probably uses the default user account permissions and you need to manually change file permissions / ownership so that non-admins can see the files.

Generally, easy_install is designed for single user installations (development use) only. including other platforms (Linux, UNIX). If you wish to distribute application / package which works well on your operating system you need to repackage it in a format friendly for this operating system.

lxml etc. Python packages come with .EXE installer. Perhaps you could check how installer of these packages have been done and apply the same installer creation script for mechanize.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文