Search code examples
pythonpython-3.xpippacman-package-manager

pip 2 & 3 Syntax change


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?


Solution

  • 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.