How to install PIL to Python 3.5 on a mac?

后端 未结 1 555
没有蜡笔的小新
没有蜡笔的小新 2021-01-20 05:43

I am very new to Python installations and trying to install PIL. I have a feeling they are being installed to the wrong directory. PIP seems to have been installed fine.

相关标签:
1条回答
  • 2021-01-20 06:18

    On your command line:

    $ which python
    

    I'm betting that this returns:

    /Library/Python/2.7/site-packages

    This shows your 'basic' Python (which comes preinstalled on Mac) location. Now do:

    $ which python3
    

    If that shows this:

    /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5'

    Then check for a pip3 version:

    $ which pip3
    

    If that exists and has a similar location to python3, then try this:

    $ pip3 install Pillow
    

    If that works, there is a good chance PyCharm will now pick up the correct installation.

    0 讨论(0)
提交回复
热议问题