Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Step-‐by-‐step guide to install Python 2.7 and some essential libraries to run RCMES on your iMac and Macbook # If Xcode on your Mac is an up-‐to-‐date version, then you can skip 1-‐5 and install MacPorts. 1. Go to App Store. 2. Search xcode and install it on your Macbook or iMac. 3. Once it is installed, run Xcode. 4. Go to Xcode -‐> Preference. 5. Go to ‘Downloads’ tab and install command line tools. 6. Now let’s install MacPorts. Go to http://www.macports.org/install.php and download a package for your iOS. 7. Install MacPorts. In shell, modify .cshrc as below: add 8. Add /opt/local/bin to your $path. 9. Open Terminal and type %% sudo port selfupdate in the beginning only the last two lines. 10. %% sudo port install python27 11. %% 12. %% 13. %% 14. %% sudo sudo sudo sudo port port port port install install install install py27-numpy py27-scipy py27-matplotlib py27-matplotlib-basemap 14a. % sudo port install py27-requests (install the python requests module) 15. Download binary distribution of PyNGL and PyNIO from ESG and copy the two tar files in /opt/local/Library/Frameworks/Python.framework/Versions/2.7 PyNIO-1.4.1.macos-10.6-x86_64-py271-numpy160.tar PyNGL-1.4.0.macos-10.6-x86_64-py271-numpy160.tar 16. %% sudo tar xvf PyNIO-1.4.1.macos-10.6-x86_64-py271- numpy160.tar %% sudo tar xvf PyNGL-1.4.0.macos-10.6-x86_64-py271numpy160.tar 17. Run /opt/local/bin/python2.7 and import numpy, scipy, matplotlib, mpl_toolkits.basemap, Ngl and Nio. 18. Add an alias as [alias python '/opt/local/bin/python2.7'] to your .cshrc (or equivalent for your shell). In MacBookAir, typing 'python' without this alias runs the old version came with the machine by default. This is what happened as of 2/14/2013 - may not be a problem in later MacOS X versions as I'm running the version 10.7.5.