2013-07-29 227 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源的驅動器中,或者您可以更改該源文件的驅動器,然後嘗試安裝它。只是一個簡單的安裝過程,沒有典型的。