python packages open new window

后端 未结 5 1007
囚心锁ツ
囚心锁ツ 2020-12-17 03:04

I installed python27 64-bit on windows 7. I also have setuptools and pip installed. Now when I execute command in windows console new console window appear, message is print

相关标签:
5条回答
  • 2020-12-17 03:28

    I tried these, but still a new terminal opened. So i ran the cmd as an administrator, and python worked fine.

    0 讨论(0)
  • 2020-12-17 03:33

    I have the same problem, but it repairs when I turn off an Antivirus.

    0 讨论(0)
  • 2020-12-17 03:34

    When you run pip or easy_install from the command-line, your system will be starting easy_install.exe or pip.exe. As of Python 2.7 x64 these executables have a manifest file to satisfy Windows 7's UAC requirements. You can read a little more about this here, but in short, because the applications could be running with different permissions, a new window is opened.

    I don't believe there's a proper fix to get around this, short of downgrading. However, you can bypass the problem by not using the executable files.

    Back up and then remove pip.exe, easy_install.exe, and fab.exe (if you have Fabric).

    Create a bunch of batch files matching the original binaries' names, and put them in the same folder that had the binaries (default C:\Python27\Scripts).

    easy_install.bat

    @echo off
    easy_install-script.py %*
    

    pip.bat

    @echo off
    pip-script.py %*
    

    fab.bat

    @echo off
    fab-script.py %*
    

    With these in place, you should find your command-line use of these tools doesn't spawn a new window. Happy hacking.

    0 讨论(0)
  • 2020-12-17 03:36

    try specifying the commands like so: c:\python27\python.exe -m easy_install Django==1.6.5v

    0 讨论(0)
  • 2020-12-17 03:39

    try specifying the commands like so: c:\python27\python.exe -m pip install Django==1.6.5v

    0 讨论(0)
提交回复
热议问题