如何更新 Python 包? [英] How do I update a Python package?

查看:24
本文介绍了如何更新 Python 包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 Ubuntu 9:10 并安装了一个名为 M2Crypto 的软件包(版本为 0.19.1).我需要下载、构建和安装最新版本的 M2Crypto 包 (0.20.2).

I'm running Ubuntu 9:10 and a package called M2Crypto is installed (version is 0.19.1). I need to download, build and install the latest version of the M2Crypto package (0.20.2).

0.19.1 包在多个位置包含文件,包括(/usr/share/pyshared 和/usr/lib/pymodules.python2.6).

The 0.19.1 package has files in a number of locations including (/usr/share/pyshared and /usr/lib/pymodules.python2.6).

如何在安装 0.20.2 之前从我的系统中完全卸载 0.19.1 版本?

How can I completely uninstall version 0.19.1 from my system before installing 0.20.2?

推荐答案

您可能想要研究 Python 包管理器,例如 pip.如果您不想使用 Python 包管理器,您应该可以下载 M2Crypto 并在旧安装上构建/编译/安装.

You might want to look into a Python package manager like pip. If you don't want to use a Python package manager, you should be able to download M2Crypto and build/compile/install over the old installation.

这篇关于如何更新 Python 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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