根据@Vortexfive 的评论(谢谢),这解决了问题:
SCML-JRichardson:pdf2html5 jric$ port installed py24-scipy
The following ports are currently installed:
py24-scipy @0.11.0_0+gcc45 (active)
这很奇怪:
SCML-JRichardson:pdf2html5 jric$ port installed all | grep scipy
py-scipy @0.11.0_0
py-scipy @0.13.2_0 (active)
py27-scipy @0.11.0_0+gcc45
py27-scipy @0.13.2_0+gcc45 (active)
不管怎样,
Password:
---> Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it:
---> py-scipy @0.11.0_0
Error: org.macports.uninstall for port py24-scipy returned: Please uninstall the ports that depend on py24-scipy first.
Please see the log file for port py24-scipy for details:
/opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py24- scipy_0.11.0_0+gcc45/py24-scipy/main.log
Warning: Failed to execute portfile from registry for py24-scipy @0.11.0_0+gcc45
---> Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it:
---> py-scipy @0.11.0_0
Error: port uninstall failed: Please uninstall the ports that depend on py24-scipy first.
尝试停用 py-scipy,这样它就不会阻止 py24-scip 删除
SCML-JRichardson:pdf2html5 jric$ sudo port deactivate py-scipy
---> Deactivating py-scipy @0.13.2_0
---> Cleaning py-scipy
卸载 py24-scipy - bt 不起作用,因为 py-scipy 仍然存在
SCML-JRichardson:pdf2html5 jric$ sudo port uninstall py24-scipy
---> Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it:
---> py-scipy @0.11.0_0
Error: org.macports.uninstall for port py24-scipy returned: Please uninstall the ports that depend on py24-scipy first.
Please see the log file for port py24-scipy for details:
/opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py24-scipy_0.11.0_0+gcc45/py24-scipy/main.log
Warning: Failed to execute portfile from registry for py24-scipy @0.11.0_0+gcc45
---> Unable to uninstall py24-scipy @0.11.0_0+gcc45, the following ports depend on it:
---> py-scipy @0.11.0_0
Error: port uninstall failed: Please uninstall the ports that depend on py24-scipy first.
现在尝试同时删除 py24-scipy py-scipy@0.11.0_0
SCML-JRichardson:pdf2html5 jric$ sudo port uninstall py24-scipy py-scipy@0.11.0_0
---> Uninstalling py-scipy @0.11.0_0
---> Cleaning py-scipy
---> Deactivating py24-scipy @0.11.0_0+gcc45
---> Cleaning py24-scipy
---> Uninstalling py24-scipy @0.11.0_0+gcc45
---> Cleaning py24-scipy
SCML-JRichardson:pdf2html5 jric$ sudo port activate py-scipy
---> Computing dependencies for py-scipy
---> Activating py-scipy @0.13.2_0
---> Cleaning py-scipy