2013-07-29 232 views
0

我第一次下载Python 3.3的目的是随后添加xlrd和xlwt以与excel一起使用。我一直无法安装easy_installdistribute或上述任一项。安装基本Python模块

这是一个错误信息分发下载,解压缩,从空转distribute_setup.py后,我得到:

Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz 
Extracting in c:\users\t\appdata\local\temp\tmpecnfj9 
Now working in c:\users\t\appdata\local\temp\tmpecnfj9\distribute-0.6.49 
Installing Distribute 
Something went wrong during the installation. 
See the error message above. 
Traceback (most recent call last): 
    File "C:\Python33\Lib\site-packages\distribute-0.6.49\distribute_setup.py", line 556, in <module> 
    sys.exit(main()) 
SystemExit: 2 

总的来说,我无法安装和使用任何模块。我假设我错过了一个非常基本的步骤。

+1

您是否尝试过在IDLE之外运行它? – geoffspear

+0

http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows试试这个。 –

回答

1

在Python 3.3中,setuptools取代了distribute。下载并安装setuptools,你应该很好去。安装setuptools后,您可能还想考虑安装pip。请按照pypi中的setuptoolspip的说明进行操作。

0

将Python安装到已下载了.msi格式的Python源的驱动器中,或者您可以更改该源文件的驱动器,然后尝试安装它。只是一个简单的安装过程,没有典型的。