使用 easy_install 安装 Mechanize
我已经在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的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.