我的python安装有问题,它运行正常。我甚至不确定问题的原因是什么。
当我在命令行上运行任何与python相关的命令时,我一直收到以下错误:
{
"_id" : ObjectId("56684ee0f597654b99d0d636"),
"name" : "Scrooge",
"surname" : "McDuck",
"address" : {
"road" : "Money Bin",
"number" : 19
},
"hobbies" : [
"money",
"food",
"cooking"
]
}
{
"_id" : ObjectId("66684ee0f597654b99d0d636"),
"name" : "Mickey",
"surname" : "Mouse",
"address" : {
"road" : "Topolinia",
"number" : 34
},
"hobbies" : [
"minnie",
"cheese"
]
}
答案 0 :(得分:0)
我在尝试在已经有python2的环境中使用Python 3时遇到了同样的问题,基本上我在我的情况下意识到python3试图导入材料python2。
我的解决方案是取消设置$ PYTHONPATH