Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我默认有python 2.7和2.6,但我需要在python 2.6上安装一些模块。但默认情况下它安装在2.7上。知道怎么做。
如果在安装包时显式调用 Python 2.6 Binary,它将安装到该实例。所以代替python setup.py install你会做/path/to/python26 setup.py install。
python setup.py install
/path/to/python26 setup.py install