如何使 easy_install.exe 不在单独的窗口中打开?
我正在设置一台新机器,并在 Windows 7 上使用 64 位 Python 2.6.6。我安装了预编译版本的 setuptools。
当我从管理员(或用户)命令 shell 运行 setuptools 时,它会生成一个新的命令窗口,然后在完成后将其关闭。我看不到任何输出。
easy_install --help
每次我之前安装 setuptools 都是在 32 位 Python 上,当然行为是符合预期的(在同一命令窗口中输出)。
stackoverflow 中已经有两个相关问题。 第一个 看起来与我的问题相同。但是,该问题被错误地关闭为 第二个问题。
I'm setting up a new machine and am using 64-bit Python 2.6.6 on Windows 7. I installed a pre-compiled version of setuptools.
When I run setuptools from an administrator (or user) command shell, it spawns a new command window and then closes it after completing. I'm unable to see any output.
easy_install --help
Every time I've installed setuptools before has been on 32-bit Python and of course the behavior is as expected (output in the same command window).
There are two related questions already in stackoverflow. The first one appears identical to my problem. However, that question was incorrectly closed as a duplicate of this second question.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终能够解决这个问题。我相信这是 setuptools 二进制文件使用的编译方法的结果。
我最初使用了此处提供的已编译的二进制文件:
http://www.lfd.uci .edu/~gohlke/pythonlibs/
我只需卸载 setuptools 二进制文件并安装此处提供的一个:
http://pypi.python.org/pypi/setuptools
如果您需要 win64 二进制文件,想必您也可以编译自己的版本。我曾尝试安装 32 位 Python 并再次使用第一个链接中的二进制文件,但遇到了同样的问题。在 pypi 上使用编译后的 32 位版本(当然是在 32 位 python 上)解决了我的问题。
I was ultimately able to resolve this. I believe it was the result of the compilation method used for the setuptools binary.
I had originally used the compiled binaries that were available here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
I just had to uninstall the setuptools binary and install one available here:
http://pypi.python.org/pypi/setuptools
Presumably you'd also be able to compile your own version should you need a win64 binary. I had tried installing 32-bit Python and again used a binary from the first link, but had the same problem. Using the compiled 32-bit version on pypi (of course on 32-bit python) solved my issue.