I'm trying to build a 64-bit version of wxpython, to work with my macports version of python2.7 (universal build). I've been pointed to the following port py27-wxpython-devel
and done the usual install command. Unfortunately I immediately receive the following error message
Unable to execute port: Can't install wxWidgets-devel because conflicting ports are installed: wxWidgets
I assume this means I need to remove wxwidgets
to enable me to install this port. I'm reluctant to do this however because I expect this wxwidgets
is something to do with the version of wxpython
that I currently have working. Is there an alternative solution?
Confirm that MacPorts is installed by typing "which port" and verifying that it returns /opt/local/bin/port. If not, see below on adding the MacPorts bin to your shell path.
If no archive is available, MacPorts will fall back to building from source. This can happen for a number of reasons: Each port is only prebuilt with its default set of variants. So if you specify different variants when installing, the port will be built from source.
MacPorts, formerly called DarwinPorts, is a package management system that simplifies the installation of software on the macOS and Darwin operating systems.
In this case, wxwidgets-devel
is a newer, experimental version of the wxwidgets
port. You need to choose one or the other. Fortunately, MacPorts makes it easy to do so with little risk. First, run
sudo port deactivate wxwidgets
which will remove the installed links to the port but will not remove the built port. Then you can run
sudo port install wxwidgets-devel
If you later want to switch back, just run:
sudo port deactivate wxwidgets-devel
sudo port activate wxwidgets
To permanently remove a port, use uninstall
:
sudo port uninstall wxwidgets
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With