如何强制 easy_install.exe 在当前命令窗口中打印输出? [英] How do I force easy_install.exe to print output in the current command window?

查看:25
本文介绍了如何强制 easy_install.exe 在当前命令窗口中打印输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行的是 Windows 7 64 位并安装了 easy_install.当我从命令提示符运行 easy_install 时,它会打开另一个输出窗口,并在我能够检查已完成的操作之前快速关闭.

I am running Windows 7 64 bit and have installed easy_install. When I run easy_install from the command prompt it opens another window for the output and quickly closes before I am able to examine what has been done.

我知道 这个问题但认为它可能已经过早关闭,因为关闭的票证提到了此处 在我的系统上不起作用.

I am aware of this question but think it may have been closed prematurely as the solution that the closed ticket referred to here does not work on my system.

当我以管理员身份运行 cmd 窗口然后执行时(例如):

When I run the cmd window as Administrator and then execute (for example):

$ easy_install pip

我得到了相同的行为......另一个 cmd 窗口闪烁,然后我返回到没有输出的提示.那么如何强制 easy_install 在当前窗口中输出其结果?

I get the same behavior ... another cmd window flashes and then I am returned to the prompt with no output. How then do I force easy_install to output its results in the current window?

更新:(附加信息)在使用 pip.exe 和 virtualenv.exe 时也会出现同样的行为.这一定与这些可执行文件的构建方式以及它们与 Windows 7 64 位交互方式有关.

UPDATE: (additional information) This same behavior is exhibited when using pip.exe and virtualenv.exe as well. This must have something to do with how these executables are built and how they interact with windows 7 64bit.

推荐答案

我发现问题出在我使用的 setuptools 版本上.我已经安装了 python-2.7.1.amd64 然后安装了 setuptools-0.6c12dev.win-amd64-py2.7.

I discovered that the issue was the version of setuptools that I was using. I had installed python-2.7.1.amd64 and then installed setuptools-0.6c12dev.win-amd64-py2.7.

在寻找 64 位安装工具的过程中 - 我没有注意到文件名的dev"部分.

In the the quest to grab a 64 bit setuptool - I failed to notice the "dev" part of the filename.

事实证明,当我卸载它然后安装 setuptools-0.6c11.win32-py2.7 时,所有输出都保留在控制台中.较新的c12"版本似乎存在一些问题.

It turns out when I uninstalled it and then installed setuptools-0.6c11.win32-py2.7 all output stays in the console. There seems to be some issues with the newer "c12" version.

在相关说明中 - 这也解决了使用 pipvirtualenv 的相同问题.

On a related note - this fixes the same problem with the use of pip and virtualenv as well.

这篇关于如何强制 easy_install.exe 在当前命令窗口中打印输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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