pyinstaller No module named grpc
问题 My goal is to build an executable using pyinstaller. The python script I am trying to build imports grpc. The following is an example that illustrates the problem called hello.py. import grpc if __name__ == '__main__': print "hello world" I do pyinstaller hello.py and that produces the expected dist directory. Then I run it like ./dist/hello/hello and I get error ImportError: No module named grpc. So then I installed grpc using pip install grpc . When I rebuild the artifact I now get error