pip 2 & 3 Syntax change

4k Views Asked by At

I use an arch-linux system and just installed pip via yaourt. yaurt -S pip

Then I tried to install something via pip for python 3. But I get an error like this:

pip install requests
install: missing destination file operand after ‘requests’
Try 'install --help' for more information.

where

pip2 install requests

will just work.

What is the "missing destination file operand"? What am I supposed to pass?

3

There are 3 best solutions below

0
On BEST ANSWER

The comments were right to assume that it has to work usually. There must be something wrong with the packed pip package for yaourt. I reinstalled python-pip via pacman and everything just works as intended.

0
On

I see this is an old question, but for anyone who got here from a google search like me, the "pip" package in the AUR is not the python package manager! Install the package python-pip instead.

0
On

I got this after a typo:

sudo -h pip3.6 install bpython
install: missing destination file operand after 'bpython'
Try 'install --help' for more information.

Fixing the parameter did the trick:

sudo -H pip3.6 install bpython