can python do this?

Rounak irounakjain at gmail.com
Wed Dec 2 10:53:56 EST 2009


Thanks Allan, I did find PIL in Synaptic Package Manager and installed
it successfully. However, I cannot use it. The reason is:
1. I had installed python3 using sudo apt-get install python3 but python
2 still remains. And it seems Scite (my python editor) is looking for
python 2.

Terminal Output:
$ python -V
Python 2.6.4
$ python3 -V
Python 3.1.1+

Output from Scite:
>python -u "sshot.py"
Traceback (most recent call last):
  File "sshot.py", line 1, in <module>
    import ImageGrab
  File "/usr/lib/python2.6/dist-packages/PIL/ImageGrab.py", line 34, in
<module>
    import _grabscreen
ImportError: No module named _grabscreen
>Exit code: 1

How to make Scite use python3 where it will hopefully find the just
installed PIL.







More information about the Python-list mailing list