Reputation: 2331
Problem explanation
I know that /usr/bin/python3
is my interpreter.
So I try to install the package that I want to use and it tells me that it's already installed
/usr/bin/python3 -m pip install cImage
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: cImage in /Users/Sam/Library/Python/3.7/lib/python/site-packages (2.0.2)
Requirement already satisfied: Pillow>=2.9.0 in /Users/Sam/Library/Python/3.7/lib/python/site-packages (from cImage) (7.1.2)
WARNING: You are using pip version 20.1.1; however, version 20.2 is available.
You should consider upgrading via the '/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m
But I also get the error that I have an unresolved reference
Extra Information
which pip3
/usr/bin/pip3
which python3
/usr/bin/python3
My python3 path
python3 -c "import sys; print('\n'.join(sys.path))"
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python37.zip
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/lib-dynload
/Users/Sam/Library/Python/3.7/lib/python/site-packages
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages
/Library/Python/3.7/site-packages
I would really like to have a single python3 and a single pip3 on my computer, instead of having to worry about all these different versions running all over the place that can't seem to install anything in the right place.
What I need solved, is that I need cImage installed to my /usr/bin/python so that I can run it in Pycharm
Upvotes: 0
Views: 679
Reputation: 7985
From the documentation
The cImage
is imported as import image
import image
win = image.ImageWin(480, 640, "Image Processing")
original_image = image.FileImage('lcastle.gif')
width = original_image.get_width()
height = original_image.get_height()
print(width, height)
Upvotes: 2