Linux - strange Python output

When I ever make a mistake or make a mistake in the console, the following message appears:

Traceback (most recent call last): File "/usr/lib/python3.3/site.py", line 629, in <module> main() File "/usr/lib/python3.3/site.py", line 614, in main known_paths = addusersitepackages(known_paths) File "/usr/lib/python3.3/site.py", line 284, in addusersitepackages user_site = getusersitepackages() File "/usr/lib/python3.3/site.py", line 260, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/usr/lib/python3.3/site.py", line 250, in getuserbase USER_BASE = get_config_var('userbase') File "/usr/lib/python3.3/sysconfig.py", line 610, in get_config_var return get_config_vars().get(name) File "/usr/lib/python3.3/sysconfig.py", line 560, in get_config_vars _init_posix(_CONFIG_VARS) File "/usr/lib/python3.3/sysconfig.py", line 432, in _init_posix from _sysconfigdata import build_time_vars File "/usr/lib/python3.3/_sysconfigdata.py", line 6, in <module> from _sysconfigdata_m import * ImportError: No module named '_sysconfigdata_m' 

I have both Python 2.7 and 3.3 installed with Anaconda. I wonder if this is normal, or was it a conflict between python 2.7 and 3.3.

+7
python linux
source share
2 answers

Assuming you are using ubuntu, here is the corresponding error report https://bugs.launchpad.net/ubuntu/+source/python3.3/+bug/1192890

You need to install the patch / etc / bash.bashrc. For more details see Comment # 6.

+7
source share

Actually, perhaps you have another python3 in your PATH before /usr/bin (most likely in /usr/local/bin ) on your system that does not have the library provided by ubuntu (using /usr/bin/python3 ). This happens with hashbangs using #!env python3 and the PATH environment variable.

If so, temporarily temporarily unavailable (for example, renaming) all such executables are not /usr/bin/python3* , make your materials for system administration, and then make them available again.

+1
source share

All Articles