pip install 语法错误:语法无效

问题描述 投票:0回答:1

我正在安装 Python,当我输入 pip install 时,会出现此错误。做什么?图片 当输入 py -m pip 时也会出现错误(“pip”处的语法错误)

重新安装python,更改版本(从3.13到3.12.3),在py.exe中运行,在shell中运行

python pip
1个回答
0
投票

您正在 python 中运行 pip install,您需要在终端中运行它。即当您看到

>>>
时,输入 exit() 并按 Enter 键,然后使用
pip install [your package]

© www.soinside.com 2019 - 2024. All rights reserved.