2012-11-13 74 views
0

我沒有下載庫的經驗,所以任何幫助表示讚賞。我已經重新安裝了Python3.3,並試圖爲64位Windows 7獲得IPython .IPython.exe安裝程序運行良好並正常完成,但無法訪問該程序。我通過their documentation看,並試圖命令有,但3.3 x64錯誤安裝Ipython

$ python setup.py install 

回報無效的語法,突出「設置」。我認爲解決方案可能在頁面上提到的分發庫中,所以我先去試着去弄明白。但是,使用腳本distribute's install page透露這是自己的錯誤,即

Traceback (most recent call last): 
    File "C:\Python33\distribute_setup.py", line 541, in <module> 
    sys.exit(main()) 
    File "C:\Python33\distribute_setup.py", line 537, in main 
    tarball = download_setuptools(download_base=options.download_base) 
    File "C:\Python33\distribute_setup.py", line 200, in download_setuptools 
    log.warn("Downloading %s", url) 
    File "C:\Python33\lib\distutils\log.py", line 47, in warn 
    self._log(WARN, msg, args) 
    File "C:\Python33\lib\distutils\log.py", line 30, in _log 
    if stream.errors == 'strict': 
AttributeError: errors 

我一直盯着它幾個小時,現在,我是新鮮的想法。接下來是什麼?

+1

您確實注意到「IPython正式要求Python 2.6,2.7,3.1或3.2」,對嗎?這就是說,我已經在64位Mac上使用了3.3,沒有任何問題,只是通過執行'pip-3.3 install ipython' ...但我可以很容易想象py3-win-amd64安裝程序無法使用3.3呢。 – abarnert

+0

同時,您遇到問題的'distribute'部分似乎正在下載'setuptools'。也許答案是首先明確安裝,然後安裝'distribute'(你可以通過'pip'來完成)。 – abarnert

+0

最後,當你說「我無法訪問該程序」時,這是什麼意思?只是'ipython'不會在'%PATH%'上結束,或者是不同的東西? – abarnert

回答

1

看起來你碰到Python bug 12967。您需要在IDLE之外運行distribute_setup.py(即在命令提示符下)。

+0

哇,你明白了。我非常新,所以現在我不覺得愚蠢。謝謝! – sybaritic

+0

我還會注意到,x64安裝程序確實可以和3.3一起使用,就像我在[Christoph Gohlke的網站](http://www.lfd.uci.edu/~ gohlke/pythonlibs /),儘管我還沒有完全測試它的大部分內容。 – sybaritic

+0

@ user1816773:沒問題。如果這個答案爲你解決了,你可以接受它(點擊勾號),這樣問題就會顯示爲已回答。 –