python - 如何检查我的机器上是否安装了 IPython 以及安装这些库的顺序?

标签 python macos ipython enthought

我需要在机器学习类(class)中使用 python,还需要安装一些外部库。我对安装所有内容的正确顺序感到有点困惑,因为我听说如果安装不正确,路径可能会弄乱。

这是我需要的:

  • Python 2.7 版
  • IPython
  • 这个包中可用的库是 enthought

所以第一步是查看我是否安装了 python 是的:我有这个版本

 AM@~ >python
 Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
 [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.

下一个 IPython

 How do I check if I have IPython?
 Also whats the ideal procedure to install it? Any caveats? Any special path settings?     

 Can I use brew to install it?

Enthought 图书馆

   Do I have to install these libraries in any particular order? before IPython? after IPython? 
   Do I have to set any specific paths?

我试图避免必须安装并出错然后重新安装等。

因此,我们将不胜感激任何帮助。我正在运行 Mac OS X 10.7 (Mountain Lion)。

谢谢

最佳答案

您可以简单地查看版本,就像我们检查其他软件包一样,检查软件包是否安装正确。

输入您的终端。

ipython --version

如果 ipython 安装正确,它会打印版本。

关于python - 如何检查我的机器上是否安装了 IPython 以及安装这些库的顺序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12361500/

相关文章:

python - 并行化并加速张量加法循环

python sqlalchemy标签使用

python - 无法在本地运行 python -m unittest。 SPARK_HOME 变量设置不正确

macos - 为什么 NSDictionary 的 allKeys 和 allValues 方法返回 NSArray 而不是 NSSet?

macos - 为什么我在 OS X 上使用 vim 时没有 crontab 条目?

macos - 通过双击 osx 打开 ipython notebook

python - Jupyter Notebook 被 Python 3.5 破坏

python - 为事件实现附加功能 - Python

macos - 响应堆叠 View 中的 mouseMove 事件

pandas - Jupyter 中数据帧的漂亮输出