运行pip安装时遇到问题 [英] Trouble with running pip install
问题描述
pip --version ./node_modules/.bin/pip:第1行:意外令牌附近的语法错误
(' ./node_modules/.bin/pip: line 1:
var freckle = require('freckle')
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命令,就会出现该错误.任何帮助都会很棒!
I have already reinstalled Python and whenever I try and use the pip command this comes up. Any help would be awesome!
推荐答案
这不是python的pip.一个nodejs模块公开了一个可执行文件 相同的名字.您可能要使用
python -m pip install
进行安装 python软件包.
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提供
这篇关于运行pip安装时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!