如何在 Windows 上安装 pip3? [英] How to install pip3 on Windows?

查看:131
本文介绍了如何在 Windows 上安装 pip3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 python 2.7、3.5.2 和 3.6.通常 pip3 与 python3.x 一起安装.但是……

I use python 2.7, 3.5.2 and 3.6. Normally pip3 is installed with python3.x. But ...

代码:

where pip3

给我:

INFO: Could not find files for the given pattern(s).

我该如何解决这个问题?

How can I fix this?

推荐答案

在 Windows 上 pip3 应该在 Python 安装的 Scripts 路径中:

On Windows pip3 should be in the Scripts path of your Python installation:

C:path	opythonScriptspip3

使用:

where python

找出您的 Python 可执行文件所在的位置.结果应该是这样的:

to find out where your Python executable(s) is/are located. The result should look like this:

C:path	opythonpython.exe

或:

C:path	opythonpython3.exe

您可以检查 pip3 是否适用于此绝对路径:

You can check if pip3 works with this absolute path:

C:path	opythonScriptspip3

如果是,将 C:path opythonScripts 添加到您的环境变量 PATH 中.

if yes, add C:path opythonScripts to your environmental variable PATH .

这篇关于如何在 Windows 上安装 pip3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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