我正在努力学习Python这本书,我需要安装pip 所以我把get-pip.py保存在我的计算机上,在powershell中我做到了:
PS C:\Users\Toto\pip> python Get-pip.py
Downloading/unpacking pip
Installing collected packages: pip
Successfully installed pip
Cleaning up...
但当我尝试:PS C:\ Users\Toto\pip>;pip时
我得到这个错误:
pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the s
pelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ pip
+ ~~~
+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
C:\ Python27\Scripts\已经在我的路径上。
我想不通。如果有人能帮我。
注意:我使用的是windows 8,这是python 2.7
每当我在Windows机器上安装pip时,它就会安装到Python的Scripts文件夹中:
因此,为了让pip在命令行上运行,我必须将该路径添加到path环境变量中。您可以通过执行以下操作(假设是Windows 7或更高版本)来获得这些设置:
Properties
Environment Variables
按钮System variables
下面列出的PATH(或PATH)变量c:\Python34\Scripts
添加到其他路径列表的末尾,确保用分号将其与上一个条目分隔开重新启动shell并尝试运行pip。如果仍然不起作用,你需要找出pip是在哪里安装的。在我的脚本文件夹中,我有一个
pip.exe
文件。如果没有,那么将Scripts
文件夹添加到您的路径将没有帮助。你必须弄清楚它是在哪里安装的,然后添加这个路径。对于windows用户,如果上述解决方案没有帮助,请确保python文件夹位于正确的位置,转到windows搜索栏并键入python,然后右键单击open location folder并复制路径并将其粘贴到环境变量中
有关详细说明,请检查以下[链接]:https://www.youtube.com/watch?v=i4yJi-cpwWk
您可以复制odoo服务器文件夹中的zklib并重新启动odoo服务器,它应该可以工作。
相关问题 更多 >
编程相关推荐