pip 在 Windows 10 中的 Python 安装中不起作用 [英] pip not working in Python Installation in Windows 10

查看:36
本文介绍了pip 在 Windows 10 中的 Python 安装中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 https://www.python.org/downloads/ 下载并安装了 Python 3.5在我的带有 IDLE 的 Windows 10 机器上

I downloaded and installed Python 3.5 from https://www.python.org/downloads/ on my Windows 10 machine with IDLE

我想使用 pip 在 IDLE 命令行编辑器中使用以下选项和其他各种选项安装其他包.

I want to install other packages using pip using the following and various other options in the IDLE commandline editor.

>> pip install    packagename
>> pip --install  packagename
>> pip --upgrade  packagename
>> pip upgrade    packagename

其中包名我已经尝试了从我安装的 Python 模块中获得的各种包 尝试了上述所有选项,没有任何包名.简而言之,pip 不起作用,我被卡住了.

Where packagename I have tried various packages available from my installed Python modules Tried all the above options without any packagename a well. In short, pip doesn't work and I am stuck.

我收到语法错误:无效语法

I get Syntaxerror: invalid syntax

pip 预装在我的 Python 中.通过命令import pip"和 help('modules') 确认了这一点.

pip is preinstalled in my Python. confirmed this with the command "import pip" and from help('modules').

需要有关如何继续的帮助.

Need help on how to proceed.

系统规格:Windows 10,以用户身份登录(本地管理员权限).这是我计算机上唯一的用户.

System specs: Windows 10, with login as User (Local Admin privileges). this is the only User on my computer.

推荐答案

而不是输入python".尝试使用py".例如:

instead of typing in "python". try using "py". for ex:

py -m pip install    packagename
py -m pip --install  packagename
py -m pip --upgrade  packagename
py -m pip upgrade    packagename

注意:这应该在命令提示符cmd"中完成,而不是在 python idle 中.FYI pip 也自动安装了 python 3.6.

note: this should be done in the command prompt "cmd" and not in python idle. also FYI pip is installed with python 3.6 automatically.

这篇关于pip 在 Windows 10 中的 Python 安装中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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