Installing Python: Difference between revisions
Jump to navigation
Jump to search
Wiki-cours (talk | contribs) (Created page with "You need to install a Python distribution that contains the scientific libraries scipy, numpy and matplotlib. Therefore, you should have a look at the [https://www.scipy.org/i...") |
Wiki-cours (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
In order to run scripts, you have several options~: | In order to run scripts, you have several options~: | ||
* use the command line and some text editor (mostly Linux and Mac) | * use the command line and some text editor (mostly Linux and Mac) | ||
* use some simple IDE such as Idle (provided by the standard distribution) or Spyder ( | * use some simple IDE such as [https://en.wikipedia.org/wiki/IDLE Idle] (provided by the standard distribution) or [https://en.wikipedia.org/wiki/Spyder_(software) Spyder] (friendly under windows for instance) | ||
* use the IPython notebook called [https://jupyter.org/ Jupyter] (for Windows, Mac and Linux) in which you can write text+formula+code+output, as in Mathematica. The notebook is an option to write your reports for Homeworks, together with the usual TeX+Figures | * use the IPython notebook called [https://jupyter.org/ Jupyter] (for Windows, Mac and Linux) in which you can write text+formula+code+output, as in Mathematica. The notebook is an option to write your reports for Homeworks, together with the usual TeX+Figures | ||
== some distributions == | == some distributions == | ||
* under Mac or Linux, installing from packages should be friendly. Installing [http://continuum.io/downloads Anaconda] is also a good option as it contains everything but is heavy. | |||
* under windows, we recommend to install [http://continuum.io/downloads Anaconda], beware that it takes a lot of disk memory (more than a Gbyte). You can select packages. | |||
== learning Python and Numpy == | |||
* for French speaking students, you may have a look at the [[Memento]] | |||
* | |||
Revision as of 16:29, 7 September 2017
You need to install a Python distribution that contains the scientific libraries scipy, numpy and matplotlib. Therefore, you should have a look at the Scipy install webpage.
We will try to work with Python 3 codes mostly so it is good for you to have Python 3 installed (there are two versions of Python, Python 2 and Python 3, which are not fully compatible).
In order to run scripts, you have several options~:
- use the command line and some text editor (mostly Linux and Mac)
- use some simple IDE such as Idle (provided by the standard distribution) or Spyder (friendly under windows for instance)
- use the IPython notebook called Jupyter (for Windows, Mac and Linux) in which you can write text+formula+code+output, as in Mathematica. The notebook is an option to write your reports for Homeworks, together with the usual TeX+Figures
some distributions
- under Mac or Linux, installing from packages should be friendly. Installing Anaconda is also a good option as it contains everything but is heavy.
- under windows, we recommend to install Anaconda, beware that it takes a lot of disk memory (more than a Gbyte). You can select packages.
learning Python and Numpy
- for French speaking students, you may have a look at the Memento