Graphics folder modules will not import after several installs (Mac OSX)

前端 未结 1 1610
太阳男子
太阳男子 2021-01-25 08:18

A similar problem with the python gdal module Gdal will not import after several installs (Mac OSX) was solved by modifying my shell profile to ensure MacPorts-installed ports a

相关标签:
1条回答
  • 2021-01-25 08:35

    For most Python packages, MacPorts has separate ports available for each supported Python version. For example, if you are trying to use PIL (the Python Imaging Library), you need to install the 2.7 version of that port:

    sudo port install py27-pil
    

    That will also install the MacPorts version of Python 2.7, if you don't already have it installed. It is located at /opt/local/bin/python2.7.

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