Linux - Weird Python Output

后端 未结 2 1472
执笔经年
执笔经年 2020-12-16 03:25

When ever i mistype or do a error into the console the following message come up:

Traceback (most recent call last):
  File \"/usr/lib/python3.3/site.py\", l         


        
相关标签:
2条回答
  • 2020-12-16 04:09

    Actually, it's possible you have another python3 in your PATH before /usr/bin (most probably in /usr/local/bin) in your system, one which lacks the ubuntu-provided libraries (used by /usr/bin/python3). That happens with hashbangs using #!env python3 and the PATH environment variable.

    If this is the case, then temporarily make unavailable (eg renaming them) all such non-/usr/bin/python3* executables, do your system administration stuff and then make them again available.

    0 讨论(0)
  • 2020-12-16 04:11

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

    You need to patch your /etc/bash.bashrc. See comment #6 for details

    0 讨论(0)
提交回复
热议问题