Project scene:
When debugging, the error ModuleNotFoundError: No module named 'tfsnippet' is reported.
solution:
1.git download tfsnippet as shown in the link https://gitee.com/obouluh/tfsnippet .
2. Need to use git tool. The installation method is as follows:
1) Download the installation package on the official website: https://git-scm.com/downloads .
2) Install the git software according to the default options.
3) Open the software and enter the command:
First install tensorflow version 1.15 or above.
pip install tensorflow==1.15.4 -i https://pypi.tuna.tsinghua.edu.cn/simple
Install dependencies:
pip install git+https://github.com/thu-ml/zhusuan.git
Install tfsnippet:
pip install git+https://github.com/haowen-xu/tfsnippet.git
If an error is reported, add –user after install to give administrator privileges, that is, the following command:
pip install --user git+https://github.com/haowen-xu/tfsnippet.git
Error screenshot:
Correct installation screenshot:
Success!