我需要使用python进行机器学习课程,我还需要安装一些外部库。我对安装所有内容的正确顺序感到有点困惑,因为我听说如果操作不正确,路径就会搞砸。
这就是我需要的:
所以第一步是看我是否安装了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)。
由于
答案 0 :(得分:2)
您可以像我们使用其他软件包一样检查版本,以检查软件包是否安装正确。
输入您的终端。
ipython --version
如果正确安装ipython,它将打印版本。
答案 1 :(得分:1)
现在安装Python 2.7就可以轻松获得所有IPython,Matplotlib,Scipy等。如果这是一个课程,我假设你有一个.edu电子邮件地址与该机构?如果是这样,请转到此处:http://www.enthought.com/products/edudownload.php
提交您的信息。像任何其他程序一样下载并安装它。然后,您就可以从终端拨打ipython
了。或者从终端使用matplotlib调用ipython --pylab
。
绝对不要逐个安装库,除非你非常熟悉它是如何工作的。