Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
import sys from PIL import Image ........ MY_IMAGE = Image.open(sys.argv[1]).convert('1')
我应该先指定目录吗?我也试过:
import Image img = Image.open("/directory/image.jpg") img.load()
它没有帮助,我仍然得到 ImportError: No module named 'PIL'
试试这个链接:http ://www.youtube.com/watch?v= ssQAFIQ4oBU 你需要先安装 PIL