about installing the Z2Pack

Dominik Gresch greschd at phys.ethz.ch
Wed Oct 11 13:56:07 CEST 2017

Hi Vijaya,

The first error seems to be because there's no command 'python' on your 
system. Maybe you need to replace it with 'python3 -m pip install ...'.

The second error you are seeing is because the dependencies of Z2Pack 
are not correctly installed. This can happen if you run Python inside 
the Z2Pack folder, without installing it (with pip). In that case Python 
will find z2pack itself, but not the dependencies.

Best regards,


On 11.10.2017 12:15, Vijaya A R wrote:
> Hello,
> As illustrated in the Document I tried installing
> from source after downloading, I am not able run it directly
> ''condmat2 at condmat2:~/Downloads/z2pack-2.1.0$ python -m pip install 
> --user /home/condmat2/Downloads/z2pack-2.1.0
> The program 'python' can be found in the following packages:
>  * python-minimal
>  * python3''
>  or
> if I try to install as module to python it showing an error as,
> Python 3.5.2 (default, Sep 14 2017, 22:51:06)
> [GCC 5.4.0 20160609] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import z2pack
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/condmat2/Downloads/z2pack-2.1.0/z2pack/__init__.py", 
> line 12, in <module>
>     from . import line
>   File 
> "/home/condmat2/Downloads/z2pack-2.1.0/z2pack/line/__init__.py", line 
> 9, in <module>
>     from ._data import WccLineData, EigenstateLineData
>   File "/home/condmat2/Downloads/z2pack-2.1.0/z2pack/line/_data.py", 
> line 8, in <module>
>     from fsc.export import export
> ImportError: No module named 'fsc'
> >>> module fsc
>   File "<stdin>", line 1
>     module fsc
> Please help me, Thank you
> Vijaya A R
> PhD student

More information about the Z2Pack mailing list