小编use*_*250的帖子

Easy_install 错误版本的python 模块(Mac OS)

我在 Mac 上安装了 Python 2.7。在终端中输入“python”时,它显示:

$ python
Python 2.7 (r27:82508, Jul  3 2010, 20:17:05) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Run Code Online (Sandbox Code Playgroud)

Python 版本在这里是正确的。

但是当我尝试 easy_install 一些模块时。系统将安装python 2.6版本无法导入到Python 2.7的模块。当然,我无法在代码中执行所需的功能。下面是一个例子easy_install graphy

$ easy_install graphy
Searching for graphy
Reading pypi.python.org/simple/graphy/
Reading http://code.Google.com/p/graphy/
Best match: Graphy 1.0.0
Downloading http://pypi.python.org/packages/source/G/Graphy/Graphy- 1.0.0.tar.gz#md5=390b4f9194d81d0590abac90c8b717e0
Processing Graphy-1.0.0.tar.gz
Running Graphy-1.0.0/setup.py -q bdist_egg --dist-dir /var/folders/fH/fHwdy4WtHZOBytkg1nOv9E+++TI/-Tmp-/easy_install-cFL53r/Graphy-1.0.0/egg-dist-tmp-YtDCZU
warning: no files found matching '*.tmpl' under directory 'graphy'
warning: no files found matching …
Run Code Online (Sandbox Code Playgroud)

python easy-install macos

5
推荐指数
1
解决办法
8415
查看次数

标签 统计

easy-install ×1

macos ×1

python ×1