2012-11-13 73 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:没问题。如果这个答案为你解决了,你可以接受它(点击勾号),这样问题就会显示为已回答。 –