serve
serve copied to clipboard
has no permission to install library.
🐛 Describe the bug
I'm using the basic docker of pytorch/torchserve:0.6.0-gpu. when I install library in this docker, I met the following errors:
Installing collected packages: tifffile, threadpoolctl, scipy, PyWavelets, opencv-python-headless, opencv-python, networkx, munch, imageio, scikit-learn, scikit-image, efficientnet-pytorch, timm, qudida, pretrainedmodels, segmentation_models_pytorch, albumentations ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/venv/lib/python3.8/site-packages/tifffile' Check the permissions.
Error logs
Successfully built efficientnet-pytorch pretrainedmodels Installing collected packages: tifffile, threadpoolctl, scipy, PyWavelets, opencv-python-headless, opencv-python, networkx, munch, imageio, scikit-learn, scikit-image, efficientnet-pytorch, timm, qudida, pretrainedmodels, segmentation_models_pytorch, albumentations ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/home/venv/lib/python3.8/site-packages/tifffile' Check the permissions.
Installation instructions
using the basic docker of pytorch/torchserve:0.6.0-gpu.
Model Packaing
N/A
config.properties
No response
Versions
0.6.0
Repro instructions
N/A
Possible Solution
No response
Hi @jack-gits I can't repro this error using the vanilla torchserve docker file. Do you mind sharing a minimal repro of your Dockerfile
?
I'm getting this error
FROM pytorch/torchserve:0.5.3-cpu
RUN pip install opencv-python
then docker build -t cv2-torchserve:0.5.3-cpu .
solved by https://github.com/pytorch/serve/issues/1499