How to check whether I have IPython installed on my machine and what sequence to install these libraries?

喜欢而已 提交于 2019-12-01 06:27:49

问题


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.

Here is what I need:

  • Python version 2.7
  • IPython
  • The libraries available inside this package by enthought

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.

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 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.

So any help would be much appreciated. Im running Mac OS X 10.7 (Mountain Lion).

Thanks


回答1:


It is so simple to get all IPython, Matplotlib, Scipy etc. now that you have Python 2.7 installed. If this is for a course, I assume you have a .edu email address with this institution? If so just go here: http://www.enthought.com/products/edudownload.php

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.




回答2:


You can simply check the version, as we do with other software packages to check if a software package is installed properly or not.

Type in your terminal.

ipython --version

It'll print the version if ipython is installed properly.



来源:https://stackoverflow.com/questions/12361500/how-to-check-whether-i-have-ipython-installed-on-my-machine-and-what-sequence-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!