Deepomatic / deepomatic-client-python

Python Client
Other
14 stars 0 forks source link

Error when installing via pip #47

Closed vdel closed 5 years ago

vdel commented 5 years ago

Running pip install deepomatic-api lead to the following error:

Collecting deepomatic-api
  Downloading https://files.pythonhosted.org/packages/a7/ca/e689ed10b4ce2fdfd7f5b25f99f883f99e83eda8edd57c560a5c458782ba/deepomatic_api-0.8.0-py2.py3-none-any.whl
Requirement already satisfied: tenacity<5,>=4.12.0 in /usr/local/lib/python3.7/site-packages/tenacity-4.12.0-py3.7.egg (from deepomatic-api) (4.12.0)
Requirement already satisfied: requests<3,>=2.19.0 in /usr/local/lib/python3.7/site-packages (from deepomatic-api) (2.19.1)
Requirement already satisfied: numpy<2,>=1.10.0 in /usr/local/lib/python3.7/site-packages (from deepomatic-api) (1.15.1)
Requirement already satisfied: six<2,>=1.10.0 in /usr/local/lib/python3.7/site-packages (from deepomatic-api) (1.11.0)
Requirement already satisfied: promise<3,>=2.1 in /usr/local/lib/python3.7/site-packages/promise-2.2.1-py3.7.egg (from deepomatic-api) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests<3,>=2.19.0->deepomatic-api) (2018.4.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests<3,>=2.19.0->deepomatic-api) (3.0.4)
Requirement already satisfied: idna<2.8,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests<3,>=2.19.0->deepomatic-api) (2.7)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests<3,>=2.19.0->deepomatic-api) (1.23)
Installing collected packages: deepomatic-api
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/requirements.txt'
Consider using the `--user` option or check the permissions.

You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

I guess the installation script should not read/write to /usr/local/requirements.txt.

vdel commented 5 years ago

That said, it works after upgrading to pip version 19.0.3.

maingoh commented 5 years ago

I guess you just forgot to use sudo ? Because in any case pip will need save the package to /usr/lib/python/dist-packages