Install Python (or use the existing python install in your OS ensure it is Python 3.6).Approach II: Install Python, modules, and IDE separately:.List of alternative python distributions (many of these include IDE's).I have heard good things about Anaconda, and appears to work similarly to Canopy as a sandboxed distribution and all of the modules you will need, but I don't have any personal experience using it. Once installed, us the Package Manager to update to the latest versions of the Enthought release of included python modules. These also include a package manager and IDE): Installing these puts the entire python installation, with a large set of pre-packaged modules (includes numpy, scipy, matplotlib), into a stand-alone sandbox, completely independent of any other python environment on your machine. The following are cross-platform (Mac, Linux, Windows). Approach I: Use a pre-packaged, sandboxed distribution:.There are two general approaches for setting up a python environment. Plotting/graphing, intentionally close to Matlab's plotting facility.īrowse the matplotlib gallery for example code. Python library for mathematical computing.īuilds on NumPy with additional scientific computing facilities. In the following, $ is used to indicate a unix-flavor command-line.īrief Python and Unix tutorial Required modules: If you wish to use Python 2.7, you may, but you are solely responsible for making any needed changes to the released project code, and you must clearly indicate that you are using Python 2.7 we will otherwise assume it is Python 3, and if the code does not run we will not grade it. For those who have primarily used Python 2 in the past, this page discusses transitioning from Python 2 to 3.Īt the level we are using Python in this course, the differences between Python 2.7 and 3 are small. Otherwise, you should look up the installation procedure online.Programming project assignments will be developed to run in python 3.6.x. You can check your package manager to determine whether version 3.4 or 3.6 is available for you. Many Linux distributions do not yet have a package for Python 3, but some do. installation on other LINUX distributions If there is a warning about tcl-tk, then something went wrong with the installation above. The command for the Idle integrated development environment for Python 3 is idle3 You can install many useful packages and applications with Homebrew, so it will be worth your time to become familiar with it. This procedure also installs the convenient Homebrew package manager for MacOS. Then, also in the terminal, type these commands brew install tcl-tk Basically, you open a terminal and cut-and-paste the Ruby command to the command line. First, get the Homebrew package manager from this page. On your Mac, first make sure you have the latest version of the Mac OS X operating system installed. Much of this installation procedure is a simplification of the procedure on this page. Open a terminal and use these commands ssh -l root localhost We will just detail the installation for CentOS and MacOS. However, their may be other ways that are easier for your system. You can always install the latest Python release from the Python Web site. However, we will only use Python 3 in CS 5045, so it is essential that you have Python version 3.4 or 3.6 installed on your development system. The older Python 2.7 is still used by some software, so it may be installed on your system it is automatically a part of CentOS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |