如何设置点子环境路径? [英] how to set pip environment path?

查看:59
本文介绍了如何设置点子环境路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我跑了

  python -m pip --version 

它返回:

来自C:\ Users \ myonl \ AppData \ Local \ Programs \ Python \ Python35-32 \ lib \ site-packages的

  pip 8.1.2(python 3.5) 

所以我将路径设置为上述路径,但是当我尝试实际使用pip时,我得到了:

  pip安装PyQt4'pip'不被识别为内部或外部命令,可操作程序或批处理文件. 

我在做什么错了?

解决方案

第一次执行 python -m pip ,第二次执行 pip .

pip 不在您的PATH上,但 python 则在您的PATH上.您可以修复它,也可以使用 python -m pip 调用它.


还可能您只需要刷新控制台窗口,以便它拾取您对PATH所做的更改.尝试关闭终端,然后重新打开,看看是否有同样的问题.

I ran:

python -m pip --version

And it returned:

pip 8.1.2 from C:\Users\myonl\AppData\Local\Programs\Python\Python35-32\lib\site-packages (python 3.5)

So I set my path to the above, but when I try to actually use pip I get:

pip install PyQt4
'pip' is not recognised as an internal or external command, operable program or batch file.

What am I doing wrong?

解决方案

The first time you do python -m pip, the second time you do pip.

pip is not on your PATH, but python is. You can fix that, or you can call it using python -m pip.


Also possible is that you simply need to refresh your console window so it picks up the change you've made to PATH. Try closing your terminal and re-opening it and seeing if you have the same problem.

这篇关于如何设置点子环境路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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