Install pandas using Zato

Good afternoon, I want to use pandas but I install zato thought docker using mac os intel chip, I don’t figure out how to install pandas for use in one service that I need it, someone knows how to install libraries with zato using docker? Please let me know

Error message

 File "/opt/zato/3.1.0/code/zato-server/src/zato/server/service/", line 936, in import_services_from_file
    mod_info = import_module_from_path(file_name, base_dir)
  File "/opt/zato/3.1.0/code/zato-common/src/zato/common/util/", line 610, in import_module_from_path
    return ModuleInfo(file_name, imp.load_source(mod_name, file_name))
  File "/opt/zato/3.1.0/code/lib/python3.6/", line 170, in load_source
    module = _exec(spec, sys.modules[name])
  File "<frozen importlib._bootstrap>", line 618, in _exec
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/zato/env/qs-1/server2/work/hot-deploy/current/", line 3, in <module>
    import pandas
ModuleNotFoundError: No module named 'pandas'


Hello @JSF0000,

each Zato installation is a virtualenv which means that you you can install additional libraries using pip.

  • First, make sure that you have the password to ssh into the container with:

    $ sudo docker exec zato /bin/bash -c 'cat /opt/zato/web_admin_password \
  • The second password above is for SSH connections. Now, you can use it to log in to the container:

    $ ssh zato@localhost -p 22022
  • Inside the container, you will find pip in /opt/zato/current/bin, which gives you access to:

    $ /opt/zato/current/bin/pip install pandas

Also, I have noticed that you use Zato 3.1. The information above is correct for this version but v3.1 is not supported anymore. Please install the latest one.

1 Like

Thanks, the solution works for me :+1:t2:

Thanks for the confirmation.

I also added a new chapter to the documentation about how to use pip with Zato.