我有一台solaris主机:
SunOS blah 5.10 Generic_147441-27 i86pc i386 i86pc
我在/usr/bin/python
找到了python
问题是我似乎没有安装setuptools,所以我下载tarball并尝试:
setuptools-0.6c12dev-r88846$ /usr/bin/python setup.py install
Traceback (most recent call last):
File "setup.py", line 4, in <module>
from distutils.util import convert_path
ImportError: No module named distutils.util
当然,因为我没有distutils,我不能安装。。。什么都可以。在
我对solaris一点都不熟悉;一些google显示我需要安装python dev。我该怎么做?还有其他建议吗?在
您可以使用OpenCSW中的Python。在那里您将得到一个Python包和许多模块,包括setuptools。可用的Python版本有python2.6(
CSWpython
)、2.7(CSWpython27
)和3.3(CSWpython33
)。大多数模块包可用于Python2.6和2.7。假设您已经got started with OpenCSW并将/opt/csw/bin
添加到PATH
,那么您可以:要获取python3.3的模块,可以使用virtualenv和pip作为常规用户。例如:
^{pr2}$相关问题 更多 >
编程相关推荐