确定 easy_install/setuptools 的版本 [英] Determining version of easy_install/setuptools

查看:146
本文介绍了确定 easy_install/setuptools 的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装使用easy_install的couchapp - 并且非常明确地说明需要特定版本的easy_install/setuptools:0.6c6.我的 Mac 上似乎已经安装了 easy_install,但没有用于检查版本的命令行参数.与其只是在上面安装一个新版本,我想先看看是否有必要.

I'm trying to install couchapp, which uses easy_install - and is quite explicit in stating a particular version of easy_install/setuptools is needed: 0.6c6. I seem to have easy_install already on my Mac, but there's no command-line arguments to check the version. Instead of just installing a new version over the top, I'd like to see whether it's necessary first.

所以:关于如何查看我的机器上安装了哪个版本的 setuptools/easy_install 的任何指示?

So: Any pointers on how I can see what version of setuptools/easy_install I have installed on my machine?

我不是 Python 开发人员,所以我假设这是一个简单的问题.但是,我没有通过 Google 或 SOF 找到任何内容.

I'm not a Python developer, so I'm assuming this is a simple question. However, I've not found anything via Google or here on SOF.

推荐答案

一种方法是查看 easy_install 的实际源文件.做

One way would be to look at the actual source file for easy_install. Do

which easy_install

查看它所在的位置,然后在

to see where it's located, and then use that path in

less path/to/easy_install

我的 easy_install 脚本中的第二行说:

The second line in my easy_install script says:

# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.6c11','console_scripts','easy_install'

这表明我有 easy_install 版本 0.6c11.

which suggests that I have easy_install version 0.6c11.

这篇关于确定 easy_install/setuptools 的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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