python - 为 python version=x 启动 ipython qtconsole/notebook 的正确语法是什么

标签 python windows python-3.x ipython anaconda

为了在 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/

相关文章:

python - 有没有办法像 re.findIter() 一样从 bs4 findAll() 获取迭代器?

python - 我正在使用tkinter libary制作一个hangman程序,但出现错误

python - 我如何编写一个程序来单击Python中的特定链接

c - 什么是 TpCallbackMayRunLong()?

windows - 编写服务以保持两个文件夹同步?

node.js - 我可以在没有管理员权限的情况下使用 NVM

python - 使用列表项的 "existence"作为 Python 的 if 条件语句

python - Powershell 与 Python sys.stdin.read() 的等价物是什么?

python - 使用生成器模拟索引方法

python - 禁用 argparse 和 optparse 的唯一前缀匹配