如何检查我的机器上是否安装了IPython以及安装这些库的顺序是什么? [英] How to check whether I have IPython installed on my machine and what sequence to install these libraries?
问题描述
我需要使用python进行机器学习课程,我还需要安装一些外部库。我对安装一切的正确顺序感到有点困惑,因为我听说如果做错了,路径可能会搞砸。
I need to use python for a machine learning course and I also need to install some external libraries. I'm a bit confused as to what the correct order is for installation of everything as I've heard the paths can get messed up if done incorrectly.
这是什么我需要:
- Python版本2.7
- IPython
- 这个包中的库可以通过enthought
所以第一步是看我是否安装了python
是的:我有这个版本
So 1st step is to see whether I have python installed Yes: I have this version
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
Next 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库
Enthought libraries
Do I have to install these libraries in any particular order? before IPython? after IPython?
Do I have to set any specific paths?
我试图避免安装并发生错误然后重新安装等。
Im trying to avoid having to install and make an error and then reinstall etc.
所以任何帮助都会非常感激。我正在运行Mac OS X 10.7(Mountain Lion)。
So any help would be much appreciated. Im running Mac OS X 10.7 (Mountain Lion).
谢谢
推荐答案
<现在您已经安装了Python 2.7,现在可以轻松获得所有IPython,Matplotlib,Scipy等。如果这是一个课程,我假设你有一个.edu电子邮件地址与该机构?如果是这样,请访问: http://www.enthought.com/products/edudownload.php
提交您的信息。像任何其他程序一样下载并安装它。然后,您就可以从终端拨打 ipython
。或者从终端使用matplotlib调用 ipython --pylab
。
Submit your info. Download and install it like any other program. You will then be able to call ipython
from the terminal. Or to use matplotlib call ipython --pylab
from the terminal.
绝对不要逐个安装库,除非你非常熟悉它是如何工作的。
Definitely do not go about installing the libraries one-by-one unless you are very familiar with how that works.
这篇关于如何检查我的机器上是否安装了IPython以及安装这些库的顺序是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!