ModuleNotFoundError: No module named 'tfsnippet' solution

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 .

insert image description here
insert image description here
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

insert image description here
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:
insert image description here
Correct installation screenshot:
insert image description here
insert image description here
Success!

Guess you like

Origin blog.csdn.net/qq_38703529/article/details/124109463