Here is the English translation of the installation guide for the niwatoko language:

niwatoko Language Installation

The niwatoko language can be installed using the following methods.

Install Locally

On Mac

  1. Use Homebrew to install the latest version of Python. Follow these steps:

    1. Open the terminal and run the following command to check if Homebrew is installed:

      brew --version
      

      If Homebrew is not installed, run the following command to install it:

      /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
      
    2. Run the following command to install Python 3.11 using Homebrew:

      brew install python@3.11
      
    3. Run the following command to set the Python PATH:

      echo 'export PATH="/usr/local/opt/python@3.11/bin:$PATH"' >> ~/.zshrc
      
    4. Open a new terminal window or run the following command to apply the changes:

      source ~/.zshrc
      
  2. In the terminal, run the following command to check the Python version:

    python --version
    

    Ensure that Python 3.11 is installed.

  3. Pip is usually included with the Python installation. Run the following command to check the Pip version:

    pip --version
    
  4. Run the following command to install the niwatoko language:

    pip install niwatoko
    

    This will install the latest version of the niwatoko language.

Note

  • Using Homebrew makes it easy to install the latest version of Python.

  • Use the python and pip commands to explicitly specify the installed Python 3.11.

  • Python 3.11 is the version that has been verified to be compatible with the niwatoko language.

On Windows

  1. Download the Python 3.6 or later installer from the official Python website (https://www.python.org/downloads/).

  2. Run the downloaded installer to install Python. It is recommended to select the “Add Python to PATH” option during installation.

  3. Open the Command Prompt with administrative privileges.

  4. Run the following command to check the Python version:

    python --version
    

    Ensure that Python 3.6 or later is installed.

  5. Run the following command to check the Pip version:

    pip --version
    

    If Pip is not installed, run the following commands to install it:

    curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
    python get-pip.py
    
  6. Run the following command to install the niwatoko language:

    pip install niwatoko
    

Install in a Virtual Environment

  1. Create a virtual environment:

    python -m venv myenv
    
  2. Activate the virtual environment:

    On Mac:

    source myenv/bin/activate
    

    On Windows:

    myenv\Scripts\activate
    
  3. Install the niwatoko language in the virtual environment:

    pip install niwatoko
    

Use Docker

  1. Ensure that Docker is installed.

  2. Create the following Dockerfile:

    FROM python:3.9
    
    RUN pip install niwatoko
    
    WORKDIR /app
    
  3. Build the Docker image:

    docker build -t niwatoko .
    
  4. Run the Docker container:

    docker run -it --rm -v $(pwd):/app niwatoko
    

You are now ready to use the niwatoko language. Choose the appropriate installation method based on your environment.