Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'PIL' #119

Open
vedantroy opened this issue Aug 16, 2022 · 3 comments
Open

No module named 'PIL' #119

vedantroy opened this issue Aug 16, 2022 · 3 comments

Comments

@vedantroy
Copy link

vedantroy commented Aug 16, 2022

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
Copy link

hugovk commented Aug 17, 2022

@vedantroy
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants