scipy.misc module has no attribute imread?How can i fix the error for imports of own package?Saving a Numpy array as an imageHow to install scipy misc packageImporting image to python :cannot import name 'imread'Reading an image in python - experimenting with images'module' object has no attribute 'imread'Convert back to 2D numpy array from .jpg imageregarding AttributeError: module 'scipy.misc' has no attribute 'imread'No image functions in Scipyndimage.imread(image_file).astype(float) not working in PILCalling a function of a module by using its name (a string)How to know if an object has an attribute in PythonAttributeError: 'module' object has no attribute 'urlopen'Python 2.7.9 PyBrain issue with SciPypython ImportError: cannot import name _vqImportError: Numpy openblaspy flavour needed error displayed even when i have scipy, numpy and scikit modules installedHow to change Keras backend (where's the json file)?AttributeError: module 'numpy' has no attribute 'core'python NoneType attribute errorPython text-to-speech module

Is there a legal way for US presidents to extend their terms beyond four years?

Could human civilization live 150 years in a nuclear-powered aircraft carrier colony without resorting to mass killing/ cannibalism?

Are all commands with an optional argument fragile?

Why is Japan trying to have a better relationship with Iran?

How can a valley surrounded by mountains be fertile and rainy?

Meaning of じゃないんじゃない?

Conjugate る-ending verbs into negative form

Should I share with a new service provider a bill from its competitor?

Handling a player (unintentionally) stealing the spotlight

Different budgets within roommate group

How hard is it to sell a home which is currently mortgaged?

Equivalence of Put Pricing Formulas

Is it okay to fade a human face just to create some space to place important content over it?

Most elegant way to write a one shot IF

Why does the same classical piece sound like it's in a different key in different recordings?

Is this homebrew Half-Phoenix race balanced?

Can Aziraphale and Crowley actually become native?

Do the 26 richest billionaires own as much wealth as the poorest 3.8 billion people?

Does a return economy-class seat between London and San Francisco release 5.28 t of CO2e?

Adjective for 'made of pus' or 'corrupted by pus' or something of something of pus

Matrix decomposition

Prime parity peregrination

In native German words, is Q always followed by U, as in English?

Why won't the ground take my seed?



scipy.misc module has no attribute imread?


How can i fix the error for imports of own package?Saving a Numpy array as an imageHow to install scipy misc packageImporting image to python :cannot import name 'imread'Reading an image in python - experimenting with images'module' object has no attribute 'imread'Convert back to 2D numpy array from .jpg imageregarding AttributeError: module 'scipy.misc' has no attribute 'imread'No image functions in Scipyndimage.imread(image_file).astype(float) not working in PILCalling a function of a module by using its name (a string)How to know if an object has an attribute in PythonAttributeError: 'module' object has no attribute 'urlopen'Python 2.7.9 PyBrain issue with SciPypython ImportError: cannot import name _vqImportError: Numpy openblaspy flavour needed error displayed even when i have scipy, numpy and scikit modules installedHow to change Keras backend (where's the json file)?AttributeError: module 'numpy' has no attribute 'core'python NoneType attribute errorPython text-to-speech module






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








70















I am trying to read an image with scipy. However it does not accept the scipy.misc.imread part. What could be the cause of this?



>>> import scipy
>>> scipy.misc
<module 'scipy.misc' from 'C:Python27libsite-packagesscipymisc__init__.pyc'>
>>> scipy.misc.imread('test.tif')
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
scipy.misc.imread('test.tif')
AttributeError: 'module' object has no attribute 'imread'









share|improve this question
























  • which version of scipy are you using? scipy.__version__ gives 0.9.0 for me and i cannot reproduce your problem

    – hannes
    Mar 11 '13 at 18:27











  • do you get the same error if you do from scipy.misc import imread, and then imread('test.tif') ?

    – karthikr
    Mar 11 '13 at 18:27












  • @karthikr yes, I get the same error for that.

    – ustroetz
    Mar 11 '13 at 18:29






  • 4





    I think this function depends on PIL (pythonware.com/products/pil) being installed. Do you have PIL?

    – Wilduck
    Mar 11 '13 at 18:32






  • 1





    @Wilduck That was the problem. I installed PIL and now it works. Thank you!

    – ustroetz
    Mar 11 '13 at 18:35

















70















I am trying to read an image with scipy. However it does not accept the scipy.misc.imread part. What could be the cause of this?



>>> import scipy
>>> scipy.misc
<module 'scipy.misc' from 'C:Python27libsite-packagesscipymisc__init__.pyc'>
>>> scipy.misc.imread('test.tif')
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
scipy.misc.imread('test.tif')
AttributeError: 'module' object has no attribute 'imread'









share|improve this question
























  • which version of scipy are you using? scipy.__version__ gives 0.9.0 for me and i cannot reproduce your problem

    – hannes
    Mar 11 '13 at 18:27











  • do you get the same error if you do from scipy.misc import imread, and then imread('test.tif') ?

    – karthikr
    Mar 11 '13 at 18:27












  • @karthikr yes, I get the same error for that.

    – ustroetz
    Mar 11 '13 at 18:29






  • 4





    I think this function depends on PIL (pythonware.com/products/pil) being installed. Do you have PIL?

    – Wilduck
    Mar 11 '13 at 18:32






  • 1





    @Wilduck That was the problem. I installed PIL and now it works. Thank you!

    – ustroetz
    Mar 11 '13 at 18:35













70












70








70


10






I am trying to read an image with scipy. However it does not accept the scipy.misc.imread part. What could be the cause of this?



>>> import scipy
>>> scipy.misc
<module 'scipy.misc' from 'C:Python27libsite-packagesscipymisc__init__.pyc'>
>>> scipy.misc.imread('test.tif')
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
scipy.misc.imread('test.tif')
AttributeError: 'module' object has no attribute 'imread'









share|improve this question
















I am trying to read an image with scipy. However it does not accept the scipy.misc.imread part. What could be the cause of this?



>>> import scipy
>>> scipy.misc
<module 'scipy.misc' from 'C:Python27libsite-packagesscipymisc__init__.pyc'>
>>> scipy.misc.imread('test.tif')
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
scipy.misc.imread('test.tif')
AttributeError: 'module' object has no attribute 'imread'






python installation scipy dependencies python-imaging-library






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 8 '15 at 23:51









smci

16.2k6 gold badges80 silver badges110 bronze badges




16.2k6 gold badges80 silver badges110 bronze badges










asked Mar 11 '13 at 18:24









ustroetzustroetz

1,89711 gold badges32 silver badges59 bronze badges




1,89711 gold badges32 silver badges59 bronze badges












  • which version of scipy are you using? scipy.__version__ gives 0.9.0 for me and i cannot reproduce your problem

    – hannes
    Mar 11 '13 at 18:27











  • do you get the same error if you do from scipy.misc import imread, and then imread('test.tif') ?

    – karthikr
    Mar 11 '13 at 18:27












  • @karthikr yes, I get the same error for that.

    – ustroetz
    Mar 11 '13 at 18:29






  • 4





    I think this function depends on PIL (pythonware.com/products/pil) being installed. Do you have PIL?

    – Wilduck
    Mar 11 '13 at 18:32






  • 1





    @Wilduck That was the problem. I installed PIL and now it works. Thank you!

    – ustroetz
    Mar 11 '13 at 18:35

















  • which version of scipy are you using? scipy.__version__ gives 0.9.0 for me and i cannot reproduce your problem

    – hannes
    Mar 11 '13 at 18:27











  • do you get the same error if you do from scipy.misc import imread, and then imread('test.tif') ?

    – karthikr
    Mar 11 '13 at 18:27












  • @karthikr yes, I get the same error for that.

    – ustroetz
    Mar 11 '13 at 18:29






  • 4





    I think this function depends on PIL (pythonware.com/products/pil) being installed. Do you have PIL?

    – Wilduck
    Mar 11 '13 at 18:32






  • 1





    @Wilduck That was the problem. I installed PIL and now it works. Thank you!

    – ustroetz
    Mar 11 '13 at 18:35
















which version of scipy are you using? scipy.__version__ gives 0.9.0 for me and i cannot reproduce your problem

– hannes
Mar 11 '13 at 18:27





which version of scipy are you using? scipy.__version__ gives 0.9.0 for me and i cannot reproduce your problem

– hannes
Mar 11 '13 at 18:27













do you get the same error if you do from scipy.misc import imread, and then imread('test.tif') ?

– karthikr
Mar 11 '13 at 18:27






do you get the same error if you do from scipy.misc import imread, and then imread('test.tif') ?

– karthikr
Mar 11 '13 at 18:27














@karthikr yes, I get the same error for that.

– ustroetz
Mar 11 '13 at 18:29





@karthikr yes, I get the same error for that.

– ustroetz
Mar 11 '13 at 18:29




4




4





I think this function depends on PIL (pythonware.com/products/pil) being installed. Do you have PIL?

– Wilduck
Mar 11 '13 at 18:32





I think this function depends on PIL (pythonware.com/products/pil) being installed. Do you have PIL?

– Wilduck
Mar 11 '13 at 18:32




1




1





@Wilduck That was the problem. I installed PIL and now it works. Thank you!

– ustroetz
Mar 11 '13 at 18:35





@Wilduck That was the problem. I installed PIL and now it works. Thank you!

– ustroetz
Mar 11 '13 at 18:35












13 Answers
13






active

oldest

votes


















117














You need to install Pillow (formerly PIL). From the docs on scipy.misc:




Note that Pillow is not a dependency of SciPy but the image manipulation functions indicated in the list below are not available without it:



...



imread



...




After installing Pillow, I was able to access imread as follows:



In [1]: import scipy.misc

In [2]: scipy.misc.imread
Out[2]: <function scipy.misc.pilutil.imread>





share|improve this answer

























  • Orz, but if I install PIL, then it will give me <PngImagePlugin.PngImageFile...

    – Allan Ruin
    Nov 10 '14 at 9:24






  • 19





    It should be Pillow instead of PIL now. Reference: pillow.readthedocs.org

    – Yuchen Zhong
    Nov 23 '14 at 23:45











  • You saved my day-but why scipy documentation is so poor! My steps are install numpy+MKL>Pillow>Scipy all are downloaded from university of California at Irvine compiled python modules for windows.

    – SIslam
    Nov 18 '16 at 10:17


















26














imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
Use imageio.imread instead.



import imageio
im = imageio.imread('astronaut.png')
im.shape # im is a numpy array
(512, 512, 3)
imageio.imwrite('imageio:astronaut-gray.jpg', im[:, :, 0])





share|improve this answer




















  • 1





    SciPy's imread used to return a numpy.ndarray. imageio.imread returns imageio.core.util.Array. If you want/need a numpy.ndarray and don't want to convert it, use matplotlib.pyplot.imread, as it also returns a numpy.ndarray.

    – Stefan
    Jan 20 at 14:55


















8














You need the Python Imaging Library (PIL) but alas! the PIL project seems to have been abandoned. In particular, it hasn't been ported to Python 3. So if you want PIL functionality in Python 3, you'll do well do use Pillow, which is the semi-official fork of PIL and appears to be actively developed. Actually, if you need a modern PIL implementation at all I'd recommend Pillow. It's as simple as pip install pillow. As it uses the same namespace as PIL it's essentially a drop-in replacement.



How "semi-official" is this fork? you may ask. The About page of the Pillow docs say this:




As more time passes since the last PIL release, the likelihood of a
new PIL release decreases. However, we’ve yet to hear an official “PIL
is dead” announcement. So if you still want to support PIL, please
report issues here first, then open corresponding Pillow tickets here.



Please provide a link to the first ticket so we can track the issue(s)
upstream.




However, the most recent PIL release on the official PIL site is dated November 15, 2009. I think we can safely proclaim Pillow as the successor of PIL after (as of this writing) nearly eight years of no new releases. So even if you don't need Python 3 support, I suggest you eschew the ancient PIL 1.1.6 distribution available in PyPI and just install fresh, up-to-date, compatible Pillow.






share|improve this answer






























    8














    For Python 3, it is best to use imread in matplotlib.pyplot:



    from matplotlib.pyplot import imread





    share|improve this answer






























      7














      imread is depreciated after version 1.2.0!
      So to solve this issue I had to install version 1.1.0.



      pip install scipy==1.1.0





      share|improve this answer






























        6














        Install the Pillow library by following commands:



        pip install pillow


        Note, the selected answer has been outdated. See the docs of
        SciPy




        Note that Pillow (https://python-pillow.org/) is not a dependency of SciPy, but the image manipulation functions indicated in the list below are not available without it.







        share|improve this answer






























          3














          Imread uses PIL library, if the library is installed use :
          "from scipy.ndimage import imread"



          Source: http://docs.scipy.org/doc/scipy-0.17.0/reference/generated/scipy.ndimage.imread.html






          share|improve this answer























          • this works for me ! though I don't understand why my professor use "from scipy.misc import imread" and it doesn't work on my laptop

            – ElleryL
            Jan 6 '17 at 22:14


















          2














          python -m pip install pillow


          This worked for me.






          share|improve this answer
































            1














            As answered misc.imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
            imageio is one option,it will return object of type :



            <class 'imageio.core.util.Image'>


            but instead of imageio, use cv2



            import cv2
            im = cv2.imread('astronaut.png')


            im will be of type :
            <class 'numpy.ndarray'>



            As numpy arrays are faster to compute.






            share|improve this answer






























              0














              You need a python image library (PIL), but now PIL only is not enough, you'd better install Pillow. This works well.






              share|improve this answer




















              • 2





                There's a comment on the accepted answer already stating that pillow should be used instead of PIL. I don't think it's a bad idea to add it as an answer, but it would be by far more useful if you explained why. Thanks.

                – lrnzcig
                Aug 20 '16 at 14:36



















              0














              Running the following in a Jupyter Notebook, I had a similar error message:



              from skimage import data
              photo_data = misc.imread('C:/Users/ers.jpg')
              type(photo_data)


              'error' msg:




              D:Program Files (x86)Microsoft Visual
              StudioSharedAnaconda3_64libsite-packagesipykernel_launcher.py:3:
              DeprecationWarning: imread is deprecated! imread is deprecated in
              SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread
              instead. This is separate from the ipykernel package so we can avoid
              doing imports until




              And using the following I got it solved:



              import matplotlib.pyplot
              photo_data = matplotlib.pyplot.imread('C:/Users/ers.jpg')
              type(photo_data)





              share|improve this answer
































                0














                I have all the packages required for the image extraction on jupyter notebook, but even then it shows me the same error.



                Error on Jupyter Notebook



                Reading the above comments, I have installed the required packages. Please do tell if I have missed some packages.



                pip3 freeze | grep -i -E "pillow|scipy|scikit-image"
                Pillow==5.4.1
                scikit-image==0.14.2

                scipy==1.2.1





                share|improve this answer
































                  0














                  The solution that work for me in python 3.6 is the following




                  py -m pip install Pillow







                  share|improve this answer

























                    Your Answer






                    StackExchange.ifUsing("editor", function ()
                    StackExchange.using("externalEditor", function ()
                    StackExchange.using("snippets", function ()
                    StackExchange.snippets.init();
                    );
                    );
                    , "code-snippets");

                    StackExchange.ready(function()
                    var channelOptions =
                    tags: "".split(" "),
                    id: "1"
                    ;
                    initTagRenderer("".split(" "), "".split(" "), channelOptions);

                    StackExchange.using("externalEditor", function()
                    // Have to fire editor after snippets, if snippets enabled
                    if (StackExchange.settings.snippets.snippetsEnabled)
                    StackExchange.using("snippets", function()
                    createEditor();
                    );

                    else
                    createEditor();

                    );

                    function createEditor()
                    StackExchange.prepareEditor(
                    heartbeatType: 'answer',
                    autoActivateHeartbeat: false,
                    convertImagesToLinks: true,
                    noModals: true,
                    showLowRepImageUploadWarning: true,
                    reputationToPostImages: 10,
                    bindNavPrevention: true,
                    postfix: "",
                    imageUploader:
                    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                    allowUrls: true
                    ,
                    onDemand: true,
                    discardSelector: ".discard-answer"
                    ,immediatelyShowMarkdownHelp:true
                    );



                    );













                    draft saved

                    draft discarded


















                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f15345790%2fscipy-misc-module-has-no-attribute-imread%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown

























                    13 Answers
                    13






                    active

                    oldest

                    votes








                    13 Answers
                    13






                    active

                    oldest

                    votes









                    active

                    oldest

                    votes






                    active

                    oldest

                    votes









                    117














                    You need to install Pillow (formerly PIL). From the docs on scipy.misc:




                    Note that Pillow is not a dependency of SciPy but the image manipulation functions indicated in the list below are not available without it:



                    ...



                    imread



                    ...




                    After installing Pillow, I was able to access imread as follows:



                    In [1]: import scipy.misc

                    In [2]: scipy.misc.imread
                    Out[2]: <function scipy.misc.pilutil.imread>





                    share|improve this answer

























                    • Orz, but if I install PIL, then it will give me <PngImagePlugin.PngImageFile...

                      – Allan Ruin
                      Nov 10 '14 at 9:24






                    • 19





                      It should be Pillow instead of PIL now. Reference: pillow.readthedocs.org

                      – Yuchen Zhong
                      Nov 23 '14 at 23:45











                    • You saved my day-but why scipy documentation is so poor! My steps are install numpy+MKL>Pillow>Scipy all are downloaded from university of California at Irvine compiled python modules for windows.

                      – SIslam
                      Nov 18 '16 at 10:17















                    117














                    You need to install Pillow (formerly PIL). From the docs on scipy.misc:




                    Note that Pillow is not a dependency of SciPy but the image manipulation functions indicated in the list below are not available without it:



                    ...



                    imread



                    ...




                    After installing Pillow, I was able to access imread as follows:



                    In [1]: import scipy.misc

                    In [2]: scipy.misc.imread
                    Out[2]: <function scipy.misc.pilutil.imread>





                    share|improve this answer

























                    • Orz, but if I install PIL, then it will give me <PngImagePlugin.PngImageFile...

                      – Allan Ruin
                      Nov 10 '14 at 9:24






                    • 19





                      It should be Pillow instead of PIL now. Reference: pillow.readthedocs.org

                      – Yuchen Zhong
                      Nov 23 '14 at 23:45











                    • You saved my day-but why scipy documentation is so poor! My steps are install numpy+MKL>Pillow>Scipy all are downloaded from university of California at Irvine compiled python modules for windows.

                      – SIslam
                      Nov 18 '16 at 10:17













                    117












                    117








                    117







                    You need to install Pillow (formerly PIL). From the docs on scipy.misc:




                    Note that Pillow is not a dependency of SciPy but the image manipulation functions indicated in the list below are not available without it:



                    ...



                    imread



                    ...




                    After installing Pillow, I was able to access imread as follows:



                    In [1]: import scipy.misc

                    In [2]: scipy.misc.imread
                    Out[2]: <function scipy.misc.pilutil.imread>





                    share|improve this answer















                    You need to install Pillow (formerly PIL). From the docs on scipy.misc:




                    Note that Pillow is not a dependency of SciPy but the image manipulation functions indicated in the list below are not available without it:



                    ...



                    imread



                    ...




                    After installing Pillow, I was able to access imread as follows:



                    In [1]: import scipy.misc

                    In [2]: scipy.misc.imread
                    Out[2]: <function scipy.misc.pilutil.imread>






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Oct 11 '17 at 14:43

























                    answered Mar 11 '13 at 18:34









                    WilduckWilduck

                    9,3967 gold badges45 silver badges82 bronze badges




                    9,3967 gold badges45 silver badges82 bronze badges












                    • Orz, but if I install PIL, then it will give me <PngImagePlugin.PngImageFile...

                      – Allan Ruin
                      Nov 10 '14 at 9:24






                    • 19





                      It should be Pillow instead of PIL now. Reference: pillow.readthedocs.org

                      – Yuchen Zhong
                      Nov 23 '14 at 23:45











                    • You saved my day-but why scipy documentation is so poor! My steps are install numpy+MKL>Pillow>Scipy all are downloaded from university of California at Irvine compiled python modules for windows.

                      – SIslam
                      Nov 18 '16 at 10:17

















                    • Orz, but if I install PIL, then it will give me <PngImagePlugin.PngImageFile...

                      – Allan Ruin
                      Nov 10 '14 at 9:24






                    • 19





                      It should be Pillow instead of PIL now. Reference: pillow.readthedocs.org

                      – Yuchen Zhong
                      Nov 23 '14 at 23:45











                    • You saved my day-but why scipy documentation is so poor! My steps are install numpy+MKL>Pillow>Scipy all are downloaded from university of California at Irvine compiled python modules for windows.

                      – SIslam
                      Nov 18 '16 at 10:17
















                    Orz, but if I install PIL, then it will give me <PngImagePlugin.PngImageFile...

                    – Allan Ruin
                    Nov 10 '14 at 9:24





                    Orz, but if I install PIL, then it will give me <PngImagePlugin.PngImageFile...

                    – Allan Ruin
                    Nov 10 '14 at 9:24




                    19




                    19





                    It should be Pillow instead of PIL now. Reference: pillow.readthedocs.org

                    – Yuchen Zhong
                    Nov 23 '14 at 23:45





                    It should be Pillow instead of PIL now. Reference: pillow.readthedocs.org

                    – Yuchen Zhong
                    Nov 23 '14 at 23:45













                    You saved my day-but why scipy documentation is so poor! My steps are install numpy+MKL>Pillow>Scipy all are downloaded from university of California at Irvine compiled python modules for windows.

                    – SIslam
                    Nov 18 '16 at 10:17





                    You saved my day-but why scipy documentation is so poor! My steps are install numpy+MKL>Pillow>Scipy all are downloaded from university of California at Irvine compiled python modules for windows.

                    – SIslam
                    Nov 18 '16 at 10:17













                    26














                    imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
                    Use imageio.imread instead.



                    import imageio
                    im = imageio.imread('astronaut.png')
                    im.shape # im is a numpy array
                    (512, 512, 3)
                    imageio.imwrite('imageio:astronaut-gray.jpg', im[:, :, 0])





                    share|improve this answer




















                    • 1





                      SciPy's imread used to return a numpy.ndarray. imageio.imread returns imageio.core.util.Array. If you want/need a numpy.ndarray and don't want to convert it, use matplotlib.pyplot.imread, as it also returns a numpy.ndarray.

                      – Stefan
                      Jan 20 at 14:55















                    26














                    imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
                    Use imageio.imread instead.



                    import imageio
                    im = imageio.imread('astronaut.png')
                    im.shape # im is a numpy array
                    (512, 512, 3)
                    imageio.imwrite('imageio:astronaut-gray.jpg', im[:, :, 0])





                    share|improve this answer




















                    • 1





                      SciPy's imread used to return a numpy.ndarray. imageio.imread returns imageio.core.util.Array. If you want/need a numpy.ndarray and don't want to convert it, use matplotlib.pyplot.imread, as it also returns a numpy.ndarray.

                      – Stefan
                      Jan 20 at 14:55













                    26












                    26








                    26







                    imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
                    Use imageio.imread instead.



                    import imageio
                    im = imageio.imread('astronaut.png')
                    im.shape # im is a numpy array
                    (512, 512, 3)
                    imageio.imwrite('imageio:astronaut-gray.jpg', im[:, :, 0])





                    share|improve this answer















                    imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
                    Use imageio.imread instead.



                    import imageio
                    im = imageio.imread('astronaut.png')
                    im.shape # im is a numpy array
                    (512, 512, 3)
                    imageio.imwrite('imageio:astronaut-gray.jpg', im[:, :, 0])






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jan 23 '18 at 18:29









                    Keith Prussing

                    3853 silver badges10 bronze badges




                    3853 silver badges10 bronze badges










                    answered Dec 18 '17 at 9:43









                    ShadabShadab

                    3613 silver badges7 bronze badges




                    3613 silver badges7 bronze badges







                    • 1





                      SciPy's imread used to return a numpy.ndarray. imageio.imread returns imageio.core.util.Array. If you want/need a numpy.ndarray and don't want to convert it, use matplotlib.pyplot.imread, as it also returns a numpy.ndarray.

                      – Stefan
                      Jan 20 at 14:55












                    • 1





                      SciPy's imread used to return a numpy.ndarray. imageio.imread returns imageio.core.util.Array. If you want/need a numpy.ndarray and don't want to convert it, use matplotlib.pyplot.imread, as it also returns a numpy.ndarray.

                      – Stefan
                      Jan 20 at 14:55







                    1




                    1





                    SciPy's imread used to return a numpy.ndarray. imageio.imread returns imageio.core.util.Array. If you want/need a numpy.ndarray and don't want to convert it, use matplotlib.pyplot.imread, as it also returns a numpy.ndarray.

                    – Stefan
                    Jan 20 at 14:55





                    SciPy's imread used to return a numpy.ndarray. imageio.imread returns imageio.core.util.Array. If you want/need a numpy.ndarray and don't want to convert it, use matplotlib.pyplot.imread, as it also returns a numpy.ndarray.

                    – Stefan
                    Jan 20 at 14:55











                    8














                    You need the Python Imaging Library (PIL) but alas! the PIL project seems to have been abandoned. In particular, it hasn't been ported to Python 3. So if you want PIL functionality in Python 3, you'll do well do use Pillow, which is the semi-official fork of PIL and appears to be actively developed. Actually, if you need a modern PIL implementation at all I'd recommend Pillow. It's as simple as pip install pillow. As it uses the same namespace as PIL it's essentially a drop-in replacement.



                    How "semi-official" is this fork? you may ask. The About page of the Pillow docs say this:




                    As more time passes since the last PIL release, the likelihood of a
                    new PIL release decreases. However, we’ve yet to hear an official “PIL
                    is dead” announcement. So if you still want to support PIL, please
                    report issues here first, then open corresponding Pillow tickets here.



                    Please provide a link to the first ticket so we can track the issue(s)
                    upstream.




                    However, the most recent PIL release on the official PIL site is dated November 15, 2009. I think we can safely proclaim Pillow as the successor of PIL after (as of this writing) nearly eight years of no new releases. So even if you don't need Python 3 support, I suggest you eschew the ancient PIL 1.1.6 distribution available in PyPI and just install fresh, up-to-date, compatible Pillow.






                    share|improve this answer



























                      8














                      You need the Python Imaging Library (PIL) but alas! the PIL project seems to have been abandoned. In particular, it hasn't been ported to Python 3. So if you want PIL functionality in Python 3, you'll do well do use Pillow, which is the semi-official fork of PIL and appears to be actively developed. Actually, if you need a modern PIL implementation at all I'd recommend Pillow. It's as simple as pip install pillow. As it uses the same namespace as PIL it's essentially a drop-in replacement.



                      How "semi-official" is this fork? you may ask. The About page of the Pillow docs say this:




                      As more time passes since the last PIL release, the likelihood of a
                      new PIL release decreases. However, we’ve yet to hear an official “PIL
                      is dead” announcement. So if you still want to support PIL, please
                      report issues here first, then open corresponding Pillow tickets here.



                      Please provide a link to the first ticket so we can track the issue(s)
                      upstream.




                      However, the most recent PIL release on the official PIL site is dated November 15, 2009. I think we can safely proclaim Pillow as the successor of PIL after (as of this writing) nearly eight years of no new releases. So even if you don't need Python 3 support, I suggest you eschew the ancient PIL 1.1.6 distribution available in PyPI and just install fresh, up-to-date, compatible Pillow.






                      share|improve this answer

























                        8












                        8








                        8







                        You need the Python Imaging Library (PIL) but alas! the PIL project seems to have been abandoned. In particular, it hasn't been ported to Python 3. So if you want PIL functionality in Python 3, you'll do well do use Pillow, which is the semi-official fork of PIL and appears to be actively developed. Actually, if you need a modern PIL implementation at all I'd recommend Pillow. It's as simple as pip install pillow. As it uses the same namespace as PIL it's essentially a drop-in replacement.



                        How "semi-official" is this fork? you may ask. The About page of the Pillow docs say this:




                        As more time passes since the last PIL release, the likelihood of a
                        new PIL release decreases. However, we’ve yet to hear an official “PIL
                        is dead” announcement. So if you still want to support PIL, please
                        report issues here first, then open corresponding Pillow tickets here.



                        Please provide a link to the first ticket so we can track the issue(s)
                        upstream.




                        However, the most recent PIL release on the official PIL site is dated November 15, 2009. I think we can safely proclaim Pillow as the successor of PIL after (as of this writing) nearly eight years of no new releases. So even if you don't need Python 3 support, I suggest you eschew the ancient PIL 1.1.6 distribution available in PyPI and just install fresh, up-to-date, compatible Pillow.






                        share|improve this answer













                        You need the Python Imaging Library (PIL) but alas! the PIL project seems to have been abandoned. In particular, it hasn't been ported to Python 3. So if you want PIL functionality in Python 3, you'll do well do use Pillow, which is the semi-official fork of PIL and appears to be actively developed. Actually, if you need a modern PIL implementation at all I'd recommend Pillow. It's as simple as pip install pillow. As it uses the same namespace as PIL it's essentially a drop-in replacement.



                        How "semi-official" is this fork? you may ask. The About page of the Pillow docs say this:




                        As more time passes since the last PIL release, the likelihood of a
                        new PIL release decreases. However, we’ve yet to hear an official “PIL
                        is dead” announcement. So if you still want to support PIL, please
                        report issues here first, then open corresponding Pillow tickets here.



                        Please provide a link to the first ticket so we can track the issue(s)
                        upstream.




                        However, the most recent PIL release on the official PIL site is dated November 15, 2009. I think we can safely proclaim Pillow as the successor of PIL after (as of this writing) nearly eight years of no new releases. So even if you don't need Python 3 support, I suggest you eschew the ancient PIL 1.1.6 distribution available in PyPI and just install fresh, up-to-date, compatible Pillow.







                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Apr 11 '17 at 0:53









                        Josh HansenJosh Hansen

                        6939 silver badges14 bronze badges




                        6939 silver badges14 bronze badges





















                            8














                            For Python 3, it is best to use imread in matplotlib.pyplot:



                            from matplotlib.pyplot import imread





                            share|improve this answer



























                              8














                              For Python 3, it is best to use imread in matplotlib.pyplot:



                              from matplotlib.pyplot import imread





                              share|improve this answer

























                                8












                                8








                                8







                                For Python 3, it is best to use imread in matplotlib.pyplot:



                                from matplotlib.pyplot import imread





                                share|improve this answer













                                For Python 3, it is best to use imread in matplotlib.pyplot:



                                from matplotlib.pyplot import imread






                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Mar 31 '18 at 10:47









                                MasterJediMasterJedi

                                5781 gold badge8 silver badges12 bronze badges




                                5781 gold badge8 silver badges12 bronze badges





















                                    7














                                    imread is depreciated after version 1.2.0!
                                    So to solve this issue I had to install version 1.1.0.



                                    pip install scipy==1.1.0





                                    share|improve this answer



























                                      7














                                      imread is depreciated after version 1.2.0!
                                      So to solve this issue I had to install version 1.1.0.



                                      pip install scipy==1.1.0





                                      share|improve this answer

























                                        7












                                        7








                                        7







                                        imread is depreciated after version 1.2.0!
                                        So to solve this issue I had to install version 1.1.0.



                                        pip install scipy==1.1.0





                                        share|improve this answer













                                        imread is depreciated after version 1.2.0!
                                        So to solve this issue I had to install version 1.1.0.



                                        pip install scipy==1.1.0






                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered May 24 at 9:05









                                        mahbubcsejumahbubcseju

                                        7352 silver badges10 bronze badges




                                        7352 silver badges10 bronze badges





















                                            6














                                            Install the Pillow library by following commands:



                                            pip install pillow


                                            Note, the selected answer has been outdated. See the docs of
                                            SciPy




                                            Note that Pillow (https://python-pillow.org/) is not a dependency of SciPy, but the image manipulation functions indicated in the list below are not available without it.







                                            share|improve this answer



























                                              6














                                              Install the Pillow library by following commands:



                                              pip install pillow


                                              Note, the selected answer has been outdated. See the docs of
                                              SciPy




                                              Note that Pillow (https://python-pillow.org/) is not a dependency of SciPy, but the image manipulation functions indicated in the list below are not available without it.







                                              share|improve this answer

























                                                6












                                                6








                                                6







                                                Install the Pillow library by following commands:



                                                pip install pillow


                                                Note, the selected answer has been outdated. See the docs of
                                                SciPy




                                                Note that Pillow (https://python-pillow.org/) is not a dependency of SciPy, but the image manipulation functions indicated in the list below are not available without it.







                                                share|improve this answer













                                                Install the Pillow library by following commands:



                                                pip install pillow


                                                Note, the selected answer has been outdated. See the docs of
                                                SciPy




                                                Note that Pillow (https://python-pillow.org/) is not a dependency of SciPy, but the image manipulation functions indicated in the list below are not available without it.








                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Sep 24 '17 at 14:29









                                                SteveSteve

                                                5785 silver badges16 bronze badges




                                                5785 silver badges16 bronze badges





















                                                    3














                                                    Imread uses PIL library, if the library is installed use :
                                                    "from scipy.ndimage import imread"



                                                    Source: http://docs.scipy.org/doc/scipy-0.17.0/reference/generated/scipy.ndimage.imread.html






                                                    share|improve this answer























                                                    • this works for me ! though I don't understand why my professor use "from scipy.misc import imread" and it doesn't work on my laptop

                                                      – ElleryL
                                                      Jan 6 '17 at 22:14















                                                    3














                                                    Imread uses PIL library, if the library is installed use :
                                                    "from scipy.ndimage import imread"



                                                    Source: http://docs.scipy.org/doc/scipy-0.17.0/reference/generated/scipy.ndimage.imread.html






                                                    share|improve this answer























                                                    • this works for me ! though I don't understand why my professor use "from scipy.misc import imread" and it doesn't work on my laptop

                                                      – ElleryL
                                                      Jan 6 '17 at 22:14













                                                    3












                                                    3








                                                    3







                                                    Imread uses PIL library, if the library is installed use :
                                                    "from scipy.ndimage import imread"



                                                    Source: http://docs.scipy.org/doc/scipy-0.17.0/reference/generated/scipy.ndimage.imread.html






                                                    share|improve this answer













                                                    Imread uses PIL library, if the library is installed use :
                                                    "from scipy.ndimage import imread"



                                                    Source: http://docs.scipy.org/doc/scipy-0.17.0/reference/generated/scipy.ndimage.imread.html







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Mar 24 '16 at 4:05









                                                    Dhananjay MehtaDhananjay Mehta

                                                    514 bronze badges




                                                    514 bronze badges












                                                    • this works for me ! though I don't understand why my professor use "from scipy.misc import imread" and it doesn't work on my laptop

                                                      – ElleryL
                                                      Jan 6 '17 at 22:14

















                                                    • this works for me ! though I don't understand why my professor use "from scipy.misc import imread" and it doesn't work on my laptop

                                                      – ElleryL
                                                      Jan 6 '17 at 22:14
















                                                    this works for me ! though I don't understand why my professor use "from scipy.misc import imread" and it doesn't work on my laptop

                                                    – ElleryL
                                                    Jan 6 '17 at 22:14





                                                    this works for me ! though I don't understand why my professor use "from scipy.misc import imread" and it doesn't work on my laptop

                                                    – ElleryL
                                                    Jan 6 '17 at 22:14











                                                    2














                                                    python -m pip install pillow


                                                    This worked for me.






                                                    share|improve this answer





























                                                      2














                                                      python -m pip install pillow


                                                      This worked for me.






                                                      share|improve this answer



























                                                        2












                                                        2








                                                        2







                                                        python -m pip install pillow


                                                        This worked for me.






                                                        share|improve this answer















                                                        python -m pip install pillow


                                                        This worked for me.







                                                        share|improve this answer














                                                        share|improve this answer



                                                        share|improve this answer








                                                        edited Sep 18 '17 at 0:58









                                                        Pang

                                                        7,10116 gold badges68 silver badges107 bronze badges




                                                        7,10116 gold badges68 silver badges107 bronze badges










                                                        answered Sep 17 '17 at 23:00









                                                        José Carlos AquinoJosé Carlos Aquino

                                                        494 bronze badges




                                                        494 bronze badges





















                                                            1














                                                            As answered misc.imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
                                                            imageio is one option,it will return object of type :



                                                            <class 'imageio.core.util.Image'>


                                                            but instead of imageio, use cv2



                                                            import cv2
                                                            im = cv2.imread('astronaut.png')


                                                            im will be of type :
                                                            <class 'numpy.ndarray'>



                                                            As numpy arrays are faster to compute.






                                                            share|improve this answer



























                                                              1














                                                              As answered misc.imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
                                                              imageio is one option,it will return object of type :



                                                              <class 'imageio.core.util.Image'>


                                                              but instead of imageio, use cv2



                                                              import cv2
                                                              im = cv2.imread('astronaut.png')


                                                              im will be of type :
                                                              <class 'numpy.ndarray'>



                                                              As numpy arrays are faster to compute.






                                                              share|improve this answer

























                                                                1












                                                                1








                                                                1







                                                                As answered misc.imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
                                                                imageio is one option,it will return object of type :



                                                                <class 'imageio.core.util.Image'>


                                                                but instead of imageio, use cv2



                                                                import cv2
                                                                im = cv2.imread('astronaut.png')


                                                                im will be of type :
                                                                <class 'numpy.ndarray'>



                                                                As numpy arrays are faster to compute.






                                                                share|improve this answer













                                                                As answered misc.imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
                                                                imageio is one option,it will return object of type :



                                                                <class 'imageio.core.util.Image'>


                                                                but instead of imageio, use cv2



                                                                import cv2
                                                                im = cv2.imread('astronaut.png')


                                                                im will be of type :
                                                                <class 'numpy.ndarray'>



                                                                As numpy arrays are faster to compute.







                                                                share|improve this answer












                                                                share|improve this answer



                                                                share|improve this answer










                                                                answered May 20 '18 at 12:36









                                                                kshitij_pkshitij_p

                                                                112 bronze badges




                                                                112 bronze badges





















                                                                    0














                                                                    You need a python image library (PIL), but now PIL only is not enough, you'd better install Pillow. This works well.






                                                                    share|improve this answer




















                                                                    • 2





                                                                      There's a comment on the accepted answer already stating that pillow should be used instead of PIL. I don't think it's a bad idea to add it as an answer, but it would be by far more useful if you explained why. Thanks.

                                                                      – lrnzcig
                                                                      Aug 20 '16 at 14:36
















                                                                    0














                                                                    You need a python image library (PIL), but now PIL only is not enough, you'd better install Pillow. This works well.






                                                                    share|improve this answer




















                                                                    • 2





                                                                      There's a comment on the accepted answer already stating that pillow should be used instead of PIL. I don't think it's a bad idea to add it as an answer, but it would be by far more useful if you explained why. Thanks.

                                                                      – lrnzcig
                                                                      Aug 20 '16 at 14:36














                                                                    0












                                                                    0








                                                                    0







                                                                    You need a python image library (PIL), but now PIL only is not enough, you'd better install Pillow. This works well.






                                                                    share|improve this answer















                                                                    You need a python image library (PIL), but now PIL only is not enough, you'd better install Pillow. This works well.







                                                                    share|improve this answer














                                                                    share|improve this answer



                                                                    share|improve this answer








                                                                    edited Jun 11 '17 at 14:26









                                                                    Mottie

                                                                    57k18 gold badges108 silver badges213 bronze badges




                                                                    57k18 gold badges108 silver badges213 bronze badges










                                                                    answered Aug 6 '16 at 11:35









                                                                    K.A.PendragonK.A.Pendragon

                                                                    161 bronze badge




                                                                    161 bronze badge







                                                                    • 2





                                                                      There's a comment on the accepted answer already stating that pillow should be used instead of PIL. I don't think it's a bad idea to add it as an answer, but it would be by far more useful if you explained why. Thanks.

                                                                      – lrnzcig
                                                                      Aug 20 '16 at 14:36













                                                                    • 2





                                                                      There's a comment on the accepted answer already stating that pillow should be used instead of PIL. I don't think it's a bad idea to add it as an answer, but it would be by far more useful if you explained why. Thanks.

                                                                      – lrnzcig
                                                                      Aug 20 '16 at 14:36








                                                                    2




                                                                    2





                                                                    There's a comment on the accepted answer already stating that pillow should be used instead of PIL. I don't think it's a bad idea to add it as an answer, but it would be by far more useful if you explained why. Thanks.

                                                                    – lrnzcig
                                                                    Aug 20 '16 at 14:36






                                                                    There's a comment on the accepted answer already stating that pillow should be used instead of PIL. I don't think it's a bad idea to add it as an answer, but it would be by far more useful if you explained why. Thanks.

                                                                    – lrnzcig
                                                                    Aug 20 '16 at 14:36












                                                                    0














                                                                    Running the following in a Jupyter Notebook, I had a similar error message:



                                                                    from skimage import data
                                                                    photo_data = misc.imread('C:/Users/ers.jpg')
                                                                    type(photo_data)


                                                                    'error' msg:




                                                                    D:Program Files (x86)Microsoft Visual
                                                                    StudioSharedAnaconda3_64libsite-packagesipykernel_launcher.py:3:
                                                                    DeprecationWarning: imread is deprecated! imread is deprecated in
                                                                    SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread
                                                                    instead. This is separate from the ipykernel package so we can avoid
                                                                    doing imports until




                                                                    And using the following I got it solved:



                                                                    import matplotlib.pyplot
                                                                    photo_data = matplotlib.pyplot.imread('C:/Users/ers.jpg')
                                                                    type(photo_data)





                                                                    share|improve this answer





























                                                                      0














                                                                      Running the following in a Jupyter Notebook, I had a similar error message:



                                                                      from skimage import data
                                                                      photo_data = misc.imread('C:/Users/ers.jpg')
                                                                      type(photo_data)


                                                                      'error' msg:




                                                                      D:Program Files (x86)Microsoft Visual
                                                                      StudioSharedAnaconda3_64libsite-packagesipykernel_launcher.py:3:
                                                                      DeprecationWarning: imread is deprecated! imread is deprecated in
                                                                      SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread
                                                                      instead. This is separate from the ipykernel package so we can avoid
                                                                      doing imports until




                                                                      And using the following I got it solved:



                                                                      import matplotlib.pyplot
                                                                      photo_data = matplotlib.pyplot.imread('C:/Users/ers.jpg')
                                                                      type(photo_data)





                                                                      share|improve this answer



























                                                                        0












                                                                        0








                                                                        0







                                                                        Running the following in a Jupyter Notebook, I had a similar error message:



                                                                        from skimage import data
                                                                        photo_data = misc.imread('C:/Users/ers.jpg')
                                                                        type(photo_data)


                                                                        'error' msg:




                                                                        D:Program Files (x86)Microsoft Visual
                                                                        StudioSharedAnaconda3_64libsite-packagesipykernel_launcher.py:3:
                                                                        DeprecationWarning: imread is deprecated! imread is deprecated in
                                                                        SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread
                                                                        instead. This is separate from the ipykernel package so we can avoid
                                                                        doing imports until




                                                                        And using the following I got it solved:



                                                                        import matplotlib.pyplot
                                                                        photo_data = matplotlib.pyplot.imread('C:/Users/ers.jpg')
                                                                        type(photo_data)





                                                                        share|improve this answer















                                                                        Running the following in a Jupyter Notebook, I had a similar error message:



                                                                        from skimage import data
                                                                        photo_data = misc.imread('C:/Users/ers.jpg')
                                                                        type(photo_data)


                                                                        'error' msg:




                                                                        D:Program Files (x86)Microsoft Visual
                                                                        StudioSharedAnaconda3_64libsite-packagesipykernel_launcher.py:3:
                                                                        DeprecationWarning: imread is deprecated! imread is deprecated in
                                                                        SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread
                                                                        instead. This is separate from the ipykernel package so we can avoid
                                                                        doing imports until




                                                                        And using the following I got it solved:



                                                                        import matplotlib.pyplot
                                                                        photo_data = matplotlib.pyplot.imread('C:/Users/ers.jpg')
                                                                        type(photo_data)






                                                                        share|improve this answer














                                                                        share|improve this answer



                                                                        share|improve this answer








                                                                        edited Sep 1 '18 at 9:53

























                                                                        answered Aug 31 '18 at 10:05









                                                                        MikeMike

                                                                        84 bronze badges




                                                                        84 bronze badges





















                                                                            0














                                                                            I have all the packages required for the image extraction on jupyter notebook, but even then it shows me the same error.



                                                                            Error on Jupyter Notebook



                                                                            Reading the above comments, I have installed the required packages. Please do tell if I have missed some packages.



                                                                            pip3 freeze | grep -i -E "pillow|scipy|scikit-image"
                                                                            Pillow==5.4.1
                                                                            scikit-image==0.14.2

                                                                            scipy==1.2.1





                                                                            share|improve this answer





























                                                                              0














                                                                              I have all the packages required for the image extraction on jupyter notebook, but even then it shows me the same error.



                                                                              Error on Jupyter Notebook



                                                                              Reading the above comments, I have installed the required packages. Please do tell if I have missed some packages.



                                                                              pip3 freeze | grep -i -E "pillow|scipy|scikit-image"
                                                                              Pillow==5.4.1
                                                                              scikit-image==0.14.2

                                                                              scipy==1.2.1





                                                                              share|improve this answer



























                                                                                0












                                                                                0








                                                                                0







                                                                                I have all the packages required for the image extraction on jupyter notebook, but even then it shows me the same error.



                                                                                Error on Jupyter Notebook



                                                                                Reading the above comments, I have installed the required packages. Please do tell if I have missed some packages.



                                                                                pip3 freeze | grep -i -E "pillow|scipy|scikit-image"
                                                                                Pillow==5.4.1
                                                                                scikit-image==0.14.2

                                                                                scipy==1.2.1





                                                                                share|improve this answer















                                                                                I have all the packages required for the image extraction on jupyter notebook, but even then it shows me the same error.



                                                                                Error on Jupyter Notebook



                                                                                Reading the above comments, I have installed the required packages. Please do tell if I have missed some packages.



                                                                                pip3 freeze | grep -i -E "pillow|scipy|scikit-image"
                                                                                Pillow==5.4.1
                                                                                scikit-image==0.14.2

                                                                                scipy==1.2.1






                                                                                share|improve this answer














                                                                                share|improve this answer



                                                                                share|improve this answer








                                                                                edited Mar 25 at 13:46









                                                                                Francesco Boi

                                                                                2,9053 gold badges28 silver badges47 bronze badges




                                                                                2,9053 gold badges28 silver badges47 bronze badges










                                                                                answered Mar 25 at 13:23









                                                                                RajRaj

                                                                                1




                                                                                1





















                                                                                    0














                                                                                    The solution that work for me in python 3.6 is the following




                                                                                    py -m pip install Pillow







                                                                                    share|improve this answer



























                                                                                      0














                                                                                      The solution that work for me in python 3.6 is the following




                                                                                      py -m pip install Pillow







                                                                                      share|improve this answer

























                                                                                        0












                                                                                        0








                                                                                        0







                                                                                        The solution that work for me in python 3.6 is the following




                                                                                        py -m pip install Pillow







                                                                                        share|improve this answer













                                                                                        The solution that work for me in python 3.6 is the following




                                                                                        py -m pip install Pillow








                                                                                        share|improve this answer












                                                                                        share|improve this answer



                                                                                        share|improve this answer










                                                                                        answered May 17 at 5:09









                                                                                        Jorge Santos NeillJorge Santos Neill

                                                                                        1984 bronze badges




                                                                                        1984 bronze badges



























                                                                                            draft saved

                                                                                            draft discarded
















































                                                                                            Thanks for contributing an answer to Stack Overflow!


                                                                                            • Please be sure to answer the question. Provide details and share your research!

                                                                                            But avoid


                                                                                            • Asking for help, clarification, or responding to other answers.

                                                                                            • Making statements based on opinion; back them up with references or personal experience.

                                                                                            To learn more, see our tips on writing great answers.




                                                                                            draft saved


                                                                                            draft discarded














                                                                                            StackExchange.ready(
                                                                                            function ()
                                                                                            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f15345790%2fscipy-misc-module-has-no-attribute-imread%23new-answer', 'question_page');

                                                                                            );

                                                                                            Post as a guest















                                                                                            Required, but never shown





















































                                                                                            Required, but never shown














                                                                                            Required, but never shown












                                                                                            Required, but never shown







                                                                                            Required, but never shown

































                                                                                            Required, but never shown














                                                                                            Required, but never shown












                                                                                            Required, but never shown







                                                                                            Required, but never shown







                                                                                            Popular posts from this blog

                                                                                            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                                                                                            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                                                                                            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript