wkentaro/imgviz

Cannot install by pip install --user

pazeshun opened this issue · 1 comments

Could you fix this?

$ pip install --user imgviz
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory '/home/ushun/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/ushun/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting imgviz
  Downloading https://files.pythonhosted.org/packages/40/d2/b3efc6d6a07d5dbd59ea4153ee19dbb2a96de8dff584d1f9c5b99a9d5d4b/imgviz-0.10.4.tar.gz (7.2MB)
     |████████████████████████████████| 7.2MB 335kB/s 
Requirement already satisfied: matplotlib in /usr/lib/python2.7/dist-packages (from imgviz) (1.5.1)
Requirement already satisfied: numpy in /usr/lib/python2.7/dist-packages (from imgviz) (1.11.0)
Collecting Pillow>=5.3.0
  Downloading https://files.pythonhosted.org/packages/12/ad/61f8dfba88c4e56196bf6d056cdbba64dc9c5dfdfbc97d02e6472feed913/Pillow-6.2.2-cp27-cp27mu-manylinux1_x86_64.whl (2.1MB)
     |████████████████████████████████| 2.1MB 1.5MB/s 
Building wheels for collected packages: imgviz
  WARNING: Building wheel for imgviz failed: [Errno 13] 許可がありません: '/home/ushun/.cache/pip/wheels/47'
Failed to build imgviz
Installing collected packages: Pillow, imgviz
    Running setup.py install for imgviz ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c2CJn6/imgviz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c2CJn6/imgviz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-NkSHWf/install-record.txt --single-version-externally-managed --compile --user --prefix=
         cwd: /tmp/pip-install-c2CJn6/imgviz/
    Complete output (50 lines):
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/draw.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/resize.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/color.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/instances.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/tile.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/depth.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/label.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/flow.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/normalize.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/centerize.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/nchannel.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/trajectory.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/__init__.py -> build/lib.linux-x86_64-2.7/imgviz
    copying imgviz/_version.py -> build/lib.linux-x86_64-2.7/imgviz
    creating build/lib.linux-x86_64-2.7/imgviz/data
    copying imgviz/data/__init__.py -> build/lib.linux-x86_64-2.7/imgviz/data
    creating build/lib.linux-x86_64-2.7/imgviz/external
    copying imgviz/external/transformations.py -> build/lib.linux-x86_64-2.7/imgviz/external
    copying imgviz/external/__init__.py -> build/lib.linux-x86_64-2.7/imgviz/external
    creating build/lib.linux-x86_64-2.7/imgviz/_io
    copying imgviz/_io/base.py -> build/lib.linux-x86_64-2.7/imgviz/_io
    copying imgviz/_io/opencv.py -> build/lib.linux-x86_64-2.7/imgviz/_io
    copying imgviz/_io/__init__.py -> build/lib.linux-x86_64-2.7/imgviz/_io
    copying imgviz/_io/pyplot.py -> build/lib.linux-x86_64-2.7/imgviz/_io
    copying imgviz/_io/_pyglet.py -> build/lib.linux-x86_64-2.7/imgviz/_io
    creating build/lib.linux-x86_64-2.7/imgviz/data/kitti
    copying imgviz/data/kitti/__init__.py -> build/lib.linux-x86_64-2.7/imgviz/data/kitti
    creating build/lib.linux-x86_64-2.7/imgviz/data/lena
    copying imgviz/data/lena/__init__.py -> build/lib.linux-x86_64-2.7/imgviz/data/lena
    creating build/lib.linux-x86_64-2.7/imgviz/data/arc2017
    copying imgviz/data/arc2017/__init__.py -> build/lib.linux-x86_64-2.7/imgviz/data/arc2017
    creating build/lib.linux-x86_64-2.7/imgviz/data/middlebury
    copying imgviz/data/middlebury/__init__.py -> build/lib.linux-x86_64-2.7/imgviz/data/middlebury
    running egg_info
    writing requirements to imgviz.egg-info/requires.txt
    writing imgviz.egg-info/PKG-INFO
    writing top-level names to imgviz.egg-info/top_level.txt
    writing dependency_links to imgviz.egg-info/dependency_links.txt
    reading manifest file 'imgviz.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'imgviz.egg-info/SOURCES.txt'
    error: can't copy 'imgviz/data/kitti': doesn't exist or not a regular file
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-c2CJn6/imgviz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-c2CJn6/imgviz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-NkSHWf/install-record.txt --single-version-externally-managed --compile --user --prefix= Check the logs for full command output.
WARNING: You are using pip version 19.3; however, version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

My environment:

$ python --version
Python 2.7.12
$ pip show pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Name: pip
Version: 19.3
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: pypa-dev@groups.google.com
License: MIT
Location: /usr/local/lib/python2.7/dist-packages
Requires: 
Required-by: 

Fixed via 1073a54