-
-
Save vlasovskikh/968240f877117cb6c882 to your computer and use it in GitHub Desktop.
Information about Python interpreter and environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import pkg_resources | |
from pprint import pprint | |
pprint({ | |
'sys.version_info': sys.version_info, | |
'sys.prefix': sys.prefix, | |
'sys.path': sys.path, | |
'pkg_resources.working_set': list(pkg_resources.working_set), | |
'PATH': os.environ['PATH'].split(os.pathsep), | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue is happening to me as well. The outputs in both my python shell and in pycharm are identical, but pycharm shows these modules as unresolved. My project interpreter is the same as the interpreter used for my python shell. How is this happening?