2

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?

4

3 回答 3

3

这些评论认为它必须正常工作是正确的。yaourt打包的pip包一定有问题。我通过 pacman 重新安装了 python-pip,一切都按预期工作。

于 2014-12-21T19:09:36.707 回答
2

我看到这是一个老问题,但对于像我这样从谷歌搜索到这里的人来说,AUR 中的“pip”包不是 python 包管理器!安装包 python-pip 代替。

于 2015-08-11T17:52:40.393 回答
0

我在打错字后得到了这个:

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

修复参数起到了作用:

sudo -H pip3.6 install bpython
于 2017-04-18T06:00:58.970 回答