Python 3.7 中的命令行问题 Windows 10
Python 3.7 command line issues in Windows 10
试图在主 python 目录之外的目录中使用 MkVirtualEnv
命令。
我正在使用 windows-10 and python-3x、(3.7)。我已经安装了两次并选择了将其添加到 %PATH% 的选项。我还进入控制面板检查该目录是否已添加到 %PATH%。
出于某种原因 python 命令,如 pip install
和 --version
仅在 cmd if I'm in the \Python
directory, they do work in git-bash 中有效。在安装 VirtualEnvWrapper
后的任一 CLI 中,除非我在 \Python
目录中,否则 MkVirtualEnv
命令将不起作用。
我很困惑我错过了什么。
python的安装目录下有一个Scripts
文件夹。那就是 pip
所在的位置。如果您想从任何地方访问它,还需要将脚本目录的路径添加到 windows PATH
以及 python.exe
.
的路径
试图在主 python 目录之外的目录中使用 MkVirtualEnv
命令。
我正在使用 windows-10 and python-3x、(3.7)。我已经安装了两次并选择了将其添加到 %PATH% 的选项。我还进入控制面板检查该目录是否已添加到 %PATH%。
出于某种原因 python 命令,如 pip install
和 --version
仅在 cmd if I'm in the \Python
directory, they do work in git-bash 中有效。在安装 VirtualEnvWrapper
后的任一 CLI 中,除非我在 \Python
目录中,否则 MkVirtualEnv
命令将不起作用。
我很困惑我错过了什么。
python的安装目录下有一个Scripts
文件夹。那就是 pip
所在的位置。如果您想从任何地方访问它,还需要将脚本目录的路径添加到 windows PATH
以及 python.exe
.