将Python从版本2.7.9降级到2.7.8 [英] Downgrade Python from version 2.7.9 to 2.7.8

查看:373
本文介绍了将Python从版本2.7.9降级到2.7.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在升级某些Python模块时,我也将Python版本更新为2.7.9.但是,这样做破坏了Google App Engine,我需要至少恢复到2.7.8.我用MacPorts安装了所有东西.解决此问题的最简单方法是什么?

In upgrading some Python modules, I also updated my Python version to 2.7.9. Doing so, however, has broken Google App Engine, and I need to revert down to at least 2.7.8. I used MacPorts to install everything. What's the easiest way to fix this?

推荐答案

我自己还没有尝试过,但是可以快速浏览

I haven't tried this myself, but a quick look in the MacPorts HOWTO pages indicates that you can simply activate the old version:

# Activate the old version
sudo port activate python27 @2.7.8

您可以使用命令port installed python27确定当前安装的版本.

You can use the command port installed python27to determine which versions are currently installed.

MacPorts保留安装的旧版本的端口,但是如果由于某种原因您没有可用的原始版本,那么HOWTO页面还将介绍查找正确的端口文件并手动安装旧端口的过程.

MacPorts keeps the old versions of ports installed, but if you for some reason don't have the original version available, the HOWTO page also describes the process for finding the correct portfile and installing the older port manually.

这篇关于将Python从版本2.7.9降级到2.7.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆