运行pip安装时遇到问题 [英] Trouble with running pip install

查看:133
本文介绍了运行pip安装时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

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