Macports 安装过时的端口



当我在终端中执行sudo port install py33-pyqt5时,我收到以下错误消息:

--->  Configuring py33-pyqt5
Error: py33-pyqt5 has been made obsolete by the port py34-pyqt5. Please install py34-pyqt5 instead.
Error: org.macports.configure for port py33-pyqt5 returned: obsolete port
Please see the log file for port py33-pyqt5 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-graveyard/py33-pyqt5/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py33-pyqt5 failed

但是我需要安装py33-pyqt5而不是py34-pyqt5.有没有可能的方法安装旧版本?

您可以使用

与安装旧端口相同的方法:http://trac.macports.org/wiki/howto/InstallingOlderPort。对于使用 subport 功能的 Python 端口,这可能意味着找到一个旧版本的 Portfile,该版本现在提供 py34-pyqt5,该版本仍然提供 py33-pyqt5 并在包含此旧 Portfile 的目录中运行sudo port install -- subport=py33-pyqt5。请注意,端口文件和目录必须可由macports用户读取,因此您的主目录可能无法正常工作。我推荐/tmp的一个地方。

不过,已经决定在MacPorts中逐步停止对python 3.3的支持 - 在尝试使用Python 3.3时会遇到越来越多的问题,所以你应该真正考虑切换到更新的版本。

最新更新