How to build espnet on a cloud machine such as GCP, AWS, etc.?¶
Our documentation, Installation, assumes that some basic tools are already installed in your machine, gcc, make, etc., so you need to also install them if you don’t have. They are undocumented, but the configuration of our CI may help you because it also build the environment from scratch: https://github.com/espnet/espnet/blob/master/.circleci/config.yml
ModuleNotFoundError: No module named ‘espnet’, ‘warpctc_pytorch’, or etc.¶
Firstly, you definitely missed some installation processes. Please read Installation again before posting an issue. If you still have a problem, then please try to manual installation.
. tools/activate_python.sh pip install <some-tools> conda install <some-tools>
If you need to install some packages not distributed in pypi, e.g.
warp_transducer, try to use the installer scripts in espnet.
cd tools ./installers/install_warp-transducer.sh
To detect the installation problem with a normal installation¶
Check where your python is
$ . tools/activate_python.sh $ which python # Normally, it should point to <espnet-root>/tools/venv
Check the installation of espnet
$ python >>> import espnet >>> import warpctc_pytorch # If you'll use warpctc