无法识别“点子" [英] 'pip' is not recognized

查看:99
本文介绍了无法识别“点子"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装PySide,但是从电源外壳中收到错误消息,如下所示:

I tried to install PySide but I got error from the power shell as follows:

pip:术语'pip'不被识别为cmdlet的名称, 功能,脚本文件或可操作程序.检查拼写 名称,或者如果包含路径,请验证路径是否正确,以及 再试一次.在第1行:char:1
+点安装-U PySide
+ ~~~
+ CategoryInfo:ObjectNotFound:(pip:String)[],CommandNotFoundException
+ FullyQualifiedErrorId:CommandNotFoundException

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1
+ pip install -U PySide
+ ~~~
+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

推荐答案

当人们尝试在命令提示符下使用pip时,Windows上会显示此错误. 要在Windows上解决此错误,您必须按照以下步骤声明路径变量:

This error shows up on windows when one tries to use pip in the command prompt. To solve this error on windows, you must declare path variable by following these steps:

第1步-右键单击我的电脑"或此PC"
第2步-单击属性"
第3步-单击高级系统设置"

Step 1 - Right click on My Computer or This PC
Step 2 - Click on Properties
Step 3 - Click on Advanced System Settings

您将找到一个称为系统变量的部分.
单击显示在此处的变量和值列表中的路径.
单击路径后,单击编辑.您会在弹出窗口中找到一个新建"按钮.
单击该位置,然后粘贴python35或python36文件夹的位置(在安装python时指定的位置),然后在其中粘贴"\ Scripts".
对我来说,它的"C:\ Users \ a610580 \ AppData \ Local \ Programs \ Python \ Python35-32"
所以我键入"C:\ Users \ a610580 \ AppData \ Local \ Programs \ Python \ Python \ Python35-32 \ Scripts "
单击确定"关闭所有窗口,然后重新启动命令提示符.
我重复一遍-重新启动命令提示符.

You will find a section called system variables.
Click on Path from the list of variable and values that shows up there.
After clicking on path click edit. You will find a New button in the pop up.
Click that and paste the location of the python35 or python36 folder (The location you specified while installing python) followed by "\Scripts" there.
For me its "C:\Users\a610580\AppData\Local\Programs\Python\Python35-32"
so I type "C:\Users\a610580\AppData\Local\Programs\Python\Python35-32\Scripts"
Click Ok to close all windows and restart your command prompt.
I repeat - restart your command prompt.

现在一切都应该正常了! 确保您不要干扰path变量中的任何其他内容,并严格按照上述步骤进行操作. 另外,您也可以观看此视频- https://www.youtube.com/watch?v=Jw_MuM2BOuI 编码愉快!

Everything should now be working fine! Make sure you don’t disturb anything else in the path variable and follow the aforementioned steps exactly. Alternatively you can watch this video - https://www.youtube.com/watch?v=Jw_MuM2BOuI Happy coding!

这篇关于无法识别“点子"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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