macports安装过时的端口

时间:2015-03-08 14:26:43

标签: pyqt osx-yosemite 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。有没有办法安装旧版本?

1 个答案:

答案 0 :(得分:0)

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

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