Trouble with running pip install

2019-08-14 03:20发布

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

I have already reinstalled Python and whenever I try and use the pip command this comes up. Any help would be awesome!

标签: python pip
2条回答
爷、活的狠高调
2楼-- · 2019-08-14 03:49

Do sudo pip install. You might have other installed tools that are imposing on the install, such as homebrew.

查看更多
Root(大扎)
3楼-- · 2019-08-14 04:02

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.

Provided by @cel

查看更多
登录 后发表回答