Python论坛  - 讨论区

标题:[zeuux-py:302] 'ipython' 不是内部或外部命令,也不是可运行的程序

2010年10月25日 星期一 23:28

蒋剑峰 jiangjf0407在gmail.com
星期一 十月 25 23:28:20 CST 2010

成功安装了ipython,而且也设置了环境变量,但是为什么还报“'ipython' 不是内部或外部命令,也不是可运行的程序”的错。
python版本是3.0,ipython是0.8.4:http://ipython.scipy.org/dist/0.8.4/
ipython-0.8.4.win32-setup.exe<http://ipython.scipy.org/dist/0.8.4/ipython-0.8.4.win32-setup.exe>

C:\Users\Administrator>path
PATH=C:\Program Files\PC Connectivity
Solution\;C:\Windows\system32;C:\Windows;C
:\Windows\System32\Wbem;C:\Program Files\CyberLink\Power2Go\;C:\Program
Files\Co
mmon Files\Thunder
Network\KanKan\Codecs;C:\scala-2.8.0.final\bin;C:\Python30;C:
\Python30\Scripts;C:\Program Files\SSH Communications Security\SSH Secure
Shell

出了什么问题导致不识别ipython。

我用记事本打开了C:\Python30\Scripts\ipython,,是不是#!/usr/bin/python这个不对啊,,这是linux下的文件格式,
windows下是不是不支持啊
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""IPython -- An enhanced Interactive Python
This is just the startup wrapper script, kept deliberately to a minimum.
The shell's mainloop() takes an optional argument, sys_exit (default=0). If
set to 1, it calls sys.exit() at exit time. You can use the following code
in
your PYTHONSTARTUP file:
import IPython
IPython.Shell.IPShell().mainloop(sys_exit=1)
[or simply IPython.Shell.IPShell().mainloop(1) ]
and IPython will be your working environment when you start python. The
final
sys.exit() call will make python exit transparently when IPython finishes,
so
you don't have an extra prompt to get out of.
This is probably useful to developers who manage multiple Python versions
and
don't want to have correspondingly multiple IPython versions. Note that in
this mode, there is no way to pass IPython any command-line options, as
those
are trapped first by Python itself.
"""
import IPython.Shell
IPython.Shell.start().mainloop()
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: <http://www.zeuux.org/pipermail/zeuux-python/attachments/20101025/3e8190d4/attachment.html>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2010年10月25日 星期一 23:35

Zoom.Quiet zoom.quiet在gmail.com
星期一 十月 25 23:35:38 CST 2010

可以怀疑是路径问题,
另外,ipython 在M$ 中想运行起来,还是有一些 包的依赖的,
参考官方文档,总之想获得  Llinux 中同样的顺畅体验很难...

在 2010年10月25日下午11:28,蒋剑峰 <jiangjf0407在gmail.com> 寫道:
> 成功安装了ipython,而且也设置了环境变量,但是为什么还报“'ipython' 不是内部或外部命令,也不是可运行的程序”的错。
> python版本是3.0,ipython是0.8.4:http://ipython.scipy.org/dist/0.8.4/ipython-0.8.4.win32-setup.exe
>
> C:\Users\Administrator>path
> PATH=C:\Program Files\PC Connectivity
> Solution\;C:\Windows\system32;C:\Windows;C
> :\Windows\System32\Wbem;C:\Program Files\CyberLink\Power2Go\;C:\Program
> Files\Co
> mmon Files\Thunder
> Network\KanKan\Codecs;C:\scala-2.8.0.final\bin;C:\Python30;C:
> \Python30\Scripts;C:\Program Files\SSH Communications Security\SSH Secure
> Shell
>
> 出了什么问题导致不识别ipython。
>
> 我用记事本打开了C:\Python30\Scripts\ipython,,是不是#!/usr/bin/python这个不对啊,,这是linux下的文件格式,
> windows下是不是不支持啊
> #!/usr/bin/python
> # -*- coding: utf-8 -*-
> """IPython -- An enhanced Interactive Python
> This is just the startup wrapper script, kept deliberately to a minimum.
> The shell's mainloop() takes an optional argument, sys_exit (default=0). If
> set to 1, it calls sys.exit() at exit time. You can use the following code
> in
> your PYTHONSTARTUP file:
> import IPython
> IPython.Shell.IPShell().mainloop(sys_exit=1)
> [or simply IPython.Shell.IPShell().mainloop(1) ]
> and IPython will be your working environment when you start python. The
> final
> sys.exit() call will make python exit transparently when IPython finishes,
> so
> you don't have an extra prompt to get out of.
> This is probably useful to developers who manage multiple Python versions
> and
> don't want to have correspondingly multiple IPython versions. Note that in
> this mode, there is no way to pass IPython any command-line options, as
> those
> are trapped first by Python itself.
> """
> import IPython.Shell
> IPython.Shell.start().mainloop()
>
> _______________________________________________
> zeuux-python mailing list
> zeuux-python在zeuux.org
> http://www.zeuux.org/mailman/listinfo/zeuux-python
>
>



-- 
http://zoomquiet.org 人生苦短? Pythonic!

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2024

    京ICP备05028076号