Trouble with running pip install

2019-08-14 03:16发布

问题:

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!

回答1:

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



回答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.

Provided by @cel



标签: python pip