我需要在机器学习类(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/