-2

I'm learning python right now. I installed Pip and everything seemed correct in the instalation but when I executed any command from Pip such as pip install (path) it gave errors such as:

Traceback (most recent call last): File "", line 1, in

or

SyntaxError: invalid syntax

Can anyone help me please?

danichef
  • 17
  • 1

2 Answers2

0

For other people running into this problem all i did was pkg update than pkg install clang this is for Linux and Termux.

For windows it will be npm update than npm install clang

incase you use yarn than yarn update than yarn add clang

unofficialdxnny
  • 105
  • 1
  • 7
-1

in terminal use python -m pip install 'packagename'

in python shell try

import pip
pip.main(['install','packagename'])

replace packagename with the package you want to install

or download the module and use python setup.py packagename

( How to manually install a pypi module without pip/easy_install? )

Community
  • 1
  • 1
ralf htp
  • 9,149
  • 4
  • 22
  • 34