O diretório '/home/deploy/.cache/pip/http' ou seu diretório pai não é de propriedade do usuário atual

0

Estoutentandobaixarongxtopparamonitoraronginxem16.04LTS

deploy@server:~$sudopipinstallngxtop[sudo]passwordfordeploy:Thedirectory'/home/deploy/.cache/pip/http'oritsparentdirectoryisnotownedbythecurrentuserandthecachehasbeendisabled.Pleasecheckthepermissionsandownerofthatdirectory.Ifexecutingpipwithsudo,youmaywantsudo's-Hflag.Thedirectory'/home/deploy/.cache/pip'oritsparentdirectoryisnotownedbythecurrentuserandcachingwheelshasbeendisabled.checkthepermissionsandownerofthatdirectory.Ifexecutingpipwithsudo,youmaywantsudo's-Hflag.CollectingngxtopDownloadingngxtop-0.0.2-py2.py3-none-any.whlCollectingpyparsing(fromngxtop)Downloadingpyparsing-2.2.0-py2.py3-none-any.whl(56kB)100%|################################|61kB4.6MB/sCollectingdocopt(fromngxtop)Downloadingdocopt-0.6.2.tar.gzCompleteoutputfromcommandpythonsetup.pyegg_info:----------------------------------------Command"python setup.py egg_info" failed with error code -9 in /tmp/pip-build-qdsM8k/docopt/
Killed

Como posso fazer isso funcionar?

Editar:

deploy@server:~$ sudo -H pip install ngxtop
[sudo] password for deploy:
Collecting ngxtop
  Downloading ngxtop-0.0.2-py2.py3-none-any.whl
Collecting pyparsing (from ngxtop)
  Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)
    100% |################################| 61kB 8.0MB/s
Collecting docopt (from ngxtop)
  Downloading docopt-0.6.2.tar.gz
Collecting tabulate (from ngxtop)
  Downloading tabulate-0.7.7-py2.py3-none-any.whl
Building wheels for collected packages: docopt
  Running setup.py bdist_wheel for docopt ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-umz2So/docopt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpPmBPnfpip-wheel- --python-tag cp27:

  ----------------------------------------
  Failed building wheel for docopt
  Running setup.py clean for docopt
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-umz2So/docopt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:

  ----------------------------------------
  Failed cleaning build dir for docopt
Failed to build docopt
Installing collected packages: pyparsing, docopt, tabulate, ngxtop
  Running setup.py install for docopt ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-umz2So/docopt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hUhxBo-record/install-record.txt --single-version-externally-managed --compile:

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-umz2So/docopt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hUhxBo-record/install-record.txt --single-version-externally-managed --compile" failed with error code -9 in /tmp/pip-build-umz2So/docopt/
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


deploy@server:~$ pip install --upgrade pip --user
Collecting pip
Killed
deploy@server:~$
    
por user61629 10.05.2017 / 19:32

0 respostas