-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Can't run modules after installing with CLI #92219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've narrowed it down to the "Install for all users" option in Advanced Options. |
You need to restart the shell between installing and trying to use the new PATH entries. Nothing in any terminal will automatically pick up global environment changes - they don't even listen for them, and it would cause havoc if they tried.
Choosing Based on the report, I suspect that not restarting the shell after the installer updates PATH is the root cause. If it's not, feel free to reopen the issue. |
I have tried restarting not only the shell, but also the computer, all to no avail.
Not sure if this is true.
Again,
There's documentation for it. I don't see the option to reopen. |
This will only happen if they install into directories already on your PATH. This is not what Python does (other than the Store package), so it won't show up until you restart the shell. About the only way this could happen is if you (1) have a messed up PATH (which is likely if you've installed Python before - MSI doesn't handle the updates well), or (2) if you uninstalled Python in the same session and are reinstalling it.
I stand corrected. The News to me. I guess someone decided they should all be documented, not just the ones that are usually useful. I'd be open to a PR to remove the ones that don't have any UI (though chances are I approved adding them because someone convinced me that nobody would ever do what you've done and wonder why everything breaks... since clearly someone might, we should remove them from the docs). |
You haven't proven a bug yet, so there's still nothing for us to fix. If a ton of other people start coming in saying they're seeing the same thing, we can take a look, but for the most part when only one person is having trouble it's because of their own machine. Can you run both types of install and attach the log files for each? They'll be in your |
…the install (pythonGH-95548) (cherry picked from commit d2c1a9c) Co-authored-by: Steve Dower <[email protected]>
…the install (pythonGH-95548) (cherry picked from commit d2c1a9c) Co-authored-by: Steve Dower <[email protected]>
…stall (GH-95548) (cherry picked from commit d2c1a9c) Co-authored-by: Steve Dower <[email protected]>
…stall (GH-95548) (#95550) (cherry picked from commit d2c1a9c) Co-authored-by: Steve Dower <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Bug report
I am only able to run the installed modules after installing Python with the GUI:
20220504-compress.mp4
Installing with the CLI using equivalent flags leads to errors when trying to install or run the modules:
No matter what combination of flags, there is some error:
Even if I literally put a
=1
for every flag I get ano module
error.Your environment
The text was updated successfully, but these errors were encountered: