gpt4 book ai didi

python - Linux - 奇怪的 Python 输出

转载 作者:IT王子 更新时间:2023-10-29 00:19:34 24 4
gpt4 key购买 nike

每当我在控制台输入错误或出现错误时,都会出现以下消息:

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'

我在 Anaconda 中安装了 Python 2.7 和 3.3。我想知道这是正常现象还是python 2.7和3.3之间的冲突

最佳答案

假设您使用的是 ubuntu,这里是相关的错误报告 https://bugs.launchpad.net/ubuntu/+source/python3.3/+bug/1192890

您需要修补您的/etc/bash.bashrc。有关详细信息,请参阅评论 #6

关于python - Linux - 奇怪的 Python 输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21446220/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com