运行pip-ins时出现问题

2024-04-27 15:27:54 发布

您现在位置:Python中文网/ 问答频道 /正文

pip --version ./node_modules/.bin/pip: line 1: syntax error near unexpected token (' ./node_modules/.bin/pip: line 1:var freckle = require('freckle')

我已经重新安装了Python,每当我尝试使用pip命令时,就会出现这种情况。任何帮助都会很棒!在


Tags: pip命令tokenmodulesnodebinversionvar
2条回答

This is not python's pip. A nodejs module exposes an executable with the same name. You may want to use python -m pip install to install python packages.

由@cel提供

sudo pip install。您可能已经安装了其他对安装有影响的工具,例如自制程序。在

相关问题 更多 >