我跑过去:
python -m pip --version
它返回:
pip 8.1.2 from C:\Users\myonl\AppData\Local\Programs\Python\Python35-32\lib\site-packages (python 3.5)
所以我将路径设置为上面的路径,但是当我尝试实际使用pip时,我得到:
pip install PyQt4
'pip' is not recognised as an internal or external command, operable program or batch file.
我做错了什么?
2条答案
按热度按时间ibps3vxo1#
第一次执行
python -m pip
,第二次执行pip
。pip
不在PATH中,但python
在。您可以解决这个问题,也可以使用python -m pip
调用它。也有可能您只需要刷新控制台窗口,这样它就可以接收您对PATH所做的更改。尝试关闭您的终端并重新打开它,看看您是否有同样的问题。
lndjwyie2#
我尝试了行python -m pip,但写得像py -m pip,然后命令提示符显示:
我最初试图安装'pandas'包,所以我尝试了这个:Py
-m pip install pandas
成功了我希望能帮上忙。