Would like to install python packages (specifically psycopg2) using pip
on CentOS. Cannot understand with what's wrong with my python3 installation, pip
not recognized:
$pip install psycopg2
-bash: /usr/bin/pip: /usr/bin/python: bad interpreter: No such file or directory
$pip install --upgrade pip
-bash: /usr/bin/pip: /usr/bin/python: bad interpreter: No such file or directory
$ python3.7 -V
Python 3.7.2
$which python3.7
/usr/local/bin/python3.7
Any idea why pip cannot work?