python 如果使用 -t 标志,则在 python 脚本文件夹中找不到模块二进制文件 (pep8.exe)

python module binaries (pep8.exe) not found in python scripts folder if -t flag used

如果使用以下命令将任何 python 软件包安装到不同的目标目录

pip install pep8 -t c:\external --no-cache-dir

然后 pep8.exe 在 c:\Python27\scripts 文件夹中丢失。 pep8.exe 在这种情况下会住在哪里?

如果我进行正常安装

pip install pep8

然后我在C:\Python27\Scripts

中看到pep8.exe

OS: Windows 7 Python: 2.7.11

当我使用 -t 标志时,知道 pip.exe 的去向吗?

非常感谢您

我想通了,在命令 gets/puts 下将可执行文件(pep8.exe - binaries/scripts 作为安装的一部分提供)进入 C:\Python27\Scripts

pip install pep8 -t c:\external --no-cache-dir --install-option="--install-scripts=C:\Python27\Scripts"

这适用于所有模块安装