uploadcare / pillow-simd

The friendly PIL fork
https://python-pillow.github.io/pillow-perf/
Other
2.12k stars 85 forks source link

No module named 'PIL' #119

Open vedantroy opened 1 year ago

vedantroy commented 1 year ago

I've installed Pillow-SIMD. Specifically, pip show Pillow-SIMD shows:

Name: Pillow-SIMD
Version: 9.0.0.post1
Summary: Python Imaging Library (Fork)
Home-page: https://github.com/uploadcare/pillow-simd
Author: Alex Clark (PIL Fork Author)
Author-email: aclark@python-pillow.org
License: HPND
Location: /home/vedant/miniconda3/envs/video-rec/lib/python3.8/site-packages
Requires: 
Required-by: torchvision

I'm inside a conda virtual env.

The issue is, when I do python3 -c 'import PIL', I get the error "ModuleNotFoundError: No module named 'PIL'.

Here's my environment information:

Collecting environment information...
PyTorch version: 1.12.0+cu116
Is debug build: False
CUDA used to build PyTorch: 11.6
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04 LTS (x86_64)
GCC version: (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: glibc-2.35

Python version: 3.8.13 (default, Mar 28 2022, 11:38:47)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.15.0-43-generic-x86_64-with-glibc2.17
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: NVIDIA GeForce GTX 1080 Ti
Nvidia driver version: 515.65.01
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.23.2
[pip3] torch==1.12.0+cu116
[pip3] torchdata==0.4.0
[pip3] torchvision==0.13.0a0+da3794e
[conda] numpy                     1.23.2                   pypi_0    pypi
[conda] torch                     1.12.0+cu116             pypi_0    pypi
[conda] torchdata                 0.4.0                    pypi_0    pypi
[conda] torchvision               0.13.0a0+da3794e          pypi_0    pypi

Also my python3 location is:

/home/vedant/miniconda3/envs/video-rec/bin/python3
hugovk commented 1 year ago

Please see https://snarky.ca/why-you-should-use-python-m-pip/

vedantroy commented 1 year ago

Please see https://snarky.ca/why-you-should-use-python-m-pip/

I'm inside of a virtual environment, but I will try regardless

MaxTranced commented 10 months ago

@vedantroy Did you figure out a solution? Facing the same issue...