python安装setup安装目录_python – setup.py安装位置?

我正在运行安装了

python 2.6和2.7的Mac OS X Lion 10.7.1.我已经制作了2.6我的默认版本.我正在尝试安装一个软件包,它安装到2.7.我的设置如下:

~:hi› which python

/usr/bin/python

~:hi› python -V

Python 2.6.6

~:hi› python

Python 2.6.6 (r266:84292, Jun 16 2011, 16:59:16)

[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> import sys

>>> sys.prefix

'/System/Library/Frameworks/Python.framework/Versions/2.6'

>>> sys.exec_prefix

'/System/Library/Frameworks/Python.framework/Versions/2.6'

它不应该安装在2.6站点包中吗?我误解了这应该如何运作?

编辑

>有问题的包裹是virtuanenvwrapper

>我的2.6默认版本是这样的:

defaults write com.apple.versioner.python Version 2.6

>我尝试像这样安装:

sudo python setup.py install

sudo /usr/bin/python setup.py install

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值