PyM Installing Guide
N. Sayols & S. Xambó
To use the PyM system, it is required to have Python 3.3 or higher.
To use the interactive notebooks, which provide an
excellent working environment, it is required to have installed, in addition to Python, the
Jupyter notebook.
Installing the Jupyter Notebook and Python
For new Python users, we highly recommend installing the last Python 3
using the Anaconda distribution, because it also intalls Jupyter:
- Download the latest Anaconda's Python 3 distribution (currently it is 3.6).
-
Follow the instructions in the download page to install the Anaconda version.
Alternative: Install Jupyter with pip
If you prefer a different Python distribution,
you can install Jupyter using Python's package manager
pip:
- Ensure that you have the latest version of pip, as older versions may encounter
dependency problems:
pip3 install --upgrade pip
- Install the Jupyter notebook:
pip3 install jupyter
Installing the PyM system
Download the file PyM.rar or
PyM.zip (current version 2006)
and decompress it into a folder in your computer.
After that, open a terminal window (cmd.exe in windows)
and go to the folder PyM-system and
execute the following command
python setup.py install
or
py setup.py install
If the installation fails or both python commands are not recognised by the system, copy the
PyM-system/PyM folder of the decompressed file into
the site-packages of your Python distribution.
For example, in Anaconda for Windows it is located in
c:\users\xxx\anaconda3\Lib\site-packages
where xxx is the Windows' user name.
PyM Execution
To use the PyM system, you only have to include the following line at the start of your code:
from PyM import *
PyM
SXD
06.11.2020