Linux install anaconda and pyhwm2014
- anaconda
# su root
[[email protected] Downloads]# bash Anaconda3-5.3.0-Linux-x86_64.sh
Welcome to Anaconda3 5.3.0
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
# vim /root/.bashrc
in the end ,add following:
export PATH="/root/anaconda3/bin:$PATH"
[[email protected] Downloads]# source /root/.bashrc
[[email protected] Downloads]# python
Python 3.7.0 (default, Jun 28 2018, 13:15:42)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
- pyhwm2014
# su root [[email protected] pyHWM]# git clone https://github.com/rilma/pyHWM14.git
Cloning into ‘pyHWM14’… remote: Enumerating objects: 250, done. remote: Total 250 (delta 0), reused 0 (delta 0), pack-reused 250 Receiving objects: 100% (250/250), 2.66 MiB | 132.00 KiB/s, done. Resolving deltas: 100% (126/126), done.
[[email protected] pyHWM]# cd pyHWM14/ [[email protected] pyHWM14]# pip -q install coveralls
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed. You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
[[email protected] pyHWM14]# pip install --upgrade pip
Collecting pip Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB) 100% |████████████████████████████████| 1.3MB 12kB/s twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed. Installing collected packages: pip Found existing installation: pip 10.0.1 Uninstalling pip-10.0.1: Successfully uninstalled pip-10.0.1 Successfully installed pip-18.1
[[email protected] pyHWM14]# pip -q install coveralls
[[email protected] pyHWM14]# pip install numpy
Requirement already satisfied: numpy in /root/anaconda3/lib/python3.7/site-packages (1.15.1)
[[email protected] pyHWM14]# pip install -e . --process-dependency-links
DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release. A possible replacement is PEP 508 URL dependencies. You can find discussion regarding this at https://github.com/pypa/pip/issues/4187. Requirement already satisfied: nose in /root/anaconda3/lib/python3.7/site-packages (from pyhwm20141.1.0) (1.3.7) Requirement already satisfied: numpy in /root/anaconda3/lib/python3.7/site-packages (from pyhwm20141.1.0) (1.15.1) Requirement already satisfied: pathlib2 in /root/anaconda3/lib/python3.7/site-packages (from pyhwm20141.1.0) (2.3.2) Collecting timeutil (from pyhwm20141.1.0) Cache entry deserialization failed, entry ignored Downloading https://github.com/rilma/TimeUtilities/zipball/master | 153kB 64.4MB/s Installing build dependencies …
this step need much time
Running setup.py bdist_wheel for timeutil … done Stored in directory: /tmp/pip-ephem-wheel-cache-pm0z994h/wheels/cf/f8/08/2156a96a2bff918b6a46ba7ea19421e06252136cbe9b007f01 Successfully built timeutil Installing collected packages: timeutil, pyhwm2014 Running setup.py develop for pyhwm2014 Successfully installed pyhwm2014 timeutil-2.1.0
[[email protected] pyHWM14]# coverage run tests/test.py -v
> test.test_hwm14 ... ok
>
> ---------------------------------------------------------------------- Ran 1 test in 0.004s
>
> OK
[[email protected] pyHWM14]# pip install pyhwm2014
Requirement already satisfied: pyhwm2014 in /home/chenze/pyHWM/pyHWM14 (1.1.0) Requirement already satisfied: nose in /root/anaconda3/lib/python3.7/site-packages (from pyhwm2014) (1.3.7) Requirement already satisfied: numpy in /root/anaconda3/lib/python3.7/site-packages (from pyhwm2014) (1.15.1) Requirement already satisfied: pathlib2 in /root/anaconda3/lib/python3.7/site-packages (from pyhwm2014) (2.3.2) Requirement already satisfied: timeutil in /root/anaconda3/lib/python3.7/site-packages (from pyhwm2014) (2.1.0) Requirement already satisfied: six in /root/anaconda3/lib/python3.7/site-packages (from pathlib2->pyhwm2014) (1.11.0)
# pip install seaborn
Requirement already satisfied: seaborn in /root/anaconda3/lib/python3.7/site-packages (0.9.0) Requirement already satisfied: matplotlib>=1.4.3 in /root/anaconda3/lib/python3.7/site-packages (from seaborn) (2.2.3) Requirement already satisfied: numpy>=1.9.3 in /root/anaconda3/lib/python3.7/site-packages (from seaborn) (1.15.1) Requirement already satisfied: scipy>=0.14.0 in /root/anaconda3/lib/python3.7/site-packages (from seaborn) (1.1.0) Requirement already satisfied: pandas>=0.15.2 in /root/anaconda3/lib/python3.7/site-packages (from seaborn) (0.23.4) Requirement already satisfied: cycler>=0.10 in /root/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.4.3->seaborn) (0.10.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /root/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.4.3->seaborn) (2.2.0) Requirement already satisfied: python-dateutil>=2.1 in /root/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.4.3->seaborn) (2.7.3) Requirement already satisfied: pytz in /root/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.4.3->seaborn) (2018.5) Requirement already satisfied: six>=1.10 in /root/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.4.3->seaborn) (1.11.0) Requirement already satisfied: kiwisolver>=1.0.1 in /root/anaconda3/lib/python3.7/site-packages (from matplotlib>=1.4.3->seaborn) (1.0.1) Requirement already satisfied: setuptools in /root/anaconda3/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib>=1.4.3->seaborn) (40.2.0)
[[email protected] programes]# vim test.py
> from pyhwm2014 import HWM14, HWM14Plot
>
> hwm14Obj = HWM14( altlim=[90,200], altstp=1, ap=[-1, 35], day=323,
> option=1, ut=11.66667, verbose=False, year=1993 )
>
> hwm14Gbj = HWM14Plot( profObj=hwm14Obj ) ~
# python test.py