Install wxPython in osx 10.11

前端 未结 7 968
我在风中等你
我在风中等你 2021-02-06 05:39

When I try to install wxPython, it shows an error:

> The Installer could not install the software because there was no
> software found to in         


        
相关标签:
7条回答
  • 2021-02-06 06:15

    I posted an answer about building from source and @memoselyk posted a useful answer on how to convert a package to install on newer OSX. However, I am finding the easy solution is to use the Brew package manager.
    Below are the steps I used.

    • Install Brew with this single command:
      • ruby -e "$(curl -fsSL \ https://raw.githubusercontent.com/Homebrew/install/master/install)"
    • Install wx; (dependencies will also be installed)
      • brew install wxpython --framework

    Test for error: python -c 'import wx'

    Done, but the following may also be relevant.

    • I ran the below commands several times to clean off old installs and make sure I was able to import the correct wx:
      • sudo pip uninstall wxPython
      • sudo pip uninstall wxPython-Phoenix
    • I removed system environment variables added to get some previous installs to work.
      • unset PYTHONPATH
      • unset DYLD_LIBRARY_PATH
      • unset DYLD_FRAMEWORK_PATH

    After installing wx you may need to run the following if it was a dirty install:
    - brew link --overwrite wxmac
    - brew doctor wxPython (and follow the very useful directions if something is detected)

    If you want access to other builds, this isn't the method for you, but for the 3.0.2.0 'Classic' release, I think this is the way to go.
    brew upgrade wxPython would bump up to a newer release, if there ever is one.

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