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

查看:253
本文介绍了如何更新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软件包管理器,则应该能够下载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天全站免登陆