问题描述
我安装了 python 3.6,我在 Visual Studio 代码上安装了 python 扩展,但我仍然无法在 Visual Studio 代码上使用 pip.它说这不是公认的命令.有什么帮助吗?
I have python 3.6 installed, I have a python extension installed on Visual Studio code but I still can't use pip on Visual Studio code. It says it is not a recognised command. Any help please?
更新:我尝试手动安装 pip,但 python2.7
中的文件一直停止.麻烦的是,我很久以前卸载了 python 2.7,目前我已经删除了每个文件夹,但 python-V
仍然说我安装了 python2.7.6
.
Update: I tried installing pip manually but a file in python2.7
keeps stopping. What's bothersome is that I uninstalled python 2.7 ages ago and I've currently removed every folder with it but python-V
still says I have python2.7.6
installed.
我使用的是 Windows 10
I'm on windows 10
推荐答案
我很确定,如果您将(Python 3.6 安装)位置添加到系统路径中,VSCode 找不到正确版本的 Python 的问题将得到解决.
I am pretty sure your problems of VSCode not finding the correct version of Python will be resolved if you add your ( Python 3.6 installation ) location to the system path.
这篇关于如何在 Visual Studio Code 中使用 pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!