setup.py installieren Sie die Lage?

Ich bin mit Mac OS X Lion 10.7.1, dass sowohl von python 2.6 und 2.7 installiert. Ich habe 2.6 zu meiner Standard-version. Ich bin versucht, um ein Paket zu installieren und es installiert, bis 2.7. Mein setup sieht wie folgt aus:

~: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'

Sollte es nicht installiert sein, 2.6 site-packages? Bin ich Missverständnis, wie dieses sollten auf die Arbeit?

Bearbeiten

  • Paket in Frage virtuanenvwrapper

  • Ich machte 2.6 zu meiner Standard-version etwa so:

    defaults write com.apple.versioner.python Version 2.6
  • Ich habe versucht, installieren Sie es wie folgt:

    sudo python setup.py install
    sudo /usr/bin/python setup.py install
  • Welches Paket? Wie hast du es installiert? Wie hast du 2.6 der Standard? Bitte lass uns nicht raten die entscheidenden details.
  • Sorry... Frage bearbeitet um mehr details zu bieten.
Schreibe einen Kommentar