为了在 Microsoft Windows 上使用最新的 anaconda 版本启动特定的 ipython,我可以获得最接近正确的单行语法的东西是什么?
示例(不起作用):
C:\> ipython qtconsole --python=3
用于最新版本的 python 3。
C:\> ipython notebook --python=3.3.5
用于 python 3 的确切版本。
C:\> ipython console --log-level=DEBUG --python=3.4
用于带有详细日志的 python 3.4 的确切版本
?
最佳答案
据我所知,ipython
命令不提供选择 python 版本的方法。
但是,您可以使用标准的 Python 工具来启动模块:
pythonX.Y -m IPython <other options>
例如:
python3 -m IPython qtconsole
python3.3.5 -m IPython notebook
python3.4 -m IPython console --log-level=DEBUG
不是要求 ipython
选择解释器,而是明确指定解释器并告诉它运行为其安装的 IPython
。
关于python - 为 python version=x 启动 ipython qtconsole/notebook 的正确语法是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24720630/