Skip to content

No Module Found, But Site-Packages has already install the Libs #19400

Answered by brettcannon
shjustinzhang asked this question in Q&A
Discussion options

You must be logged in to vote

It's because you're using popen to execute python which has no guarantee of being the same Python as the one you executed tt_main.py with. If you want to launch a subprocess that uses the same Python as you started with, I would use subprocess and specify the binary to use as sys.executable.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@shjustinzhang
Comment options

@brettcannon
Comment options

@shjustinzhang
Comment options

@shjustinzhang
Comment options

Answer selected by shjustinzhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-editor-* User-facing catch-all
2 participants