dengbowen 发表于 2020-7-25 20:08:26

easygui在cmd中可以用 但在python中就不行是怎么肥事啊

在CMD中运行data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK0AAAAoCAYAAACM0nooAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAJXSURBVHhe7ZrhjcIwDIV795sF2IaRYB+GYQD2YAzuLGHJsmzHrSlN6Pskq6ndxKn7UoWKn+c/k+ByuUzX6/V1BkB//L6OAAwDRAuGwxXt7XZ7tWyq8Qw0xjvGAeuw1fNxRXs6ncIJVeMALCXcHmwtXOpP1jN7XphbPZ/mnrYlvGocgLmkP3mR8KJVVY1rpNB1v2gRyEWi2xo9Dl+jc+tzQvclrBwRXn7Gyivx5tCar+VjZH+ZU/us8T4GiVZyPp+fh8PBtPv9bvrZqnHLvD7Sb7Xp6F1jnVu+1hieL2OtsXS8da59c+Ot8zm+tS39yYtWVrSiqvE1kPmoLd8OWfQYn0Lmys47ut8t6r8WKdG2brga3ytUF2ka9lu1I5/sSzYH3X+k59MUbeuGqvE9Q3XRxnDdpE8j+5FRHwn7rGcgx9ex3glFa92spBpfG8rPfGIuMt8SvP6Wv5qLakFjSIuo5nsn7tcDmuSWgrWKxOPJGBdftvWRYxo5DsHXaD9h9WeiHBFefkaOq3Nk50jXZf3aJ3OQn89lW2LlWYOv/ZeX9VD2iFcHyz9Kzb5StPItsFfhcg2i+5d1IkapFf5PC4Yj/Z0WgF6AaMFwuKLV+x1NNQ7AUlzR0qY8El41DsBSwu0BhAt6pLmnhXBBb6R+iEG4oCdSoiUgXNALadGS4Eh4HtU4AFlSooVgQU80RQvBgt4IRbuVYB+PR2hg37ii3UqwALRwRdsSXDUOwFJSP8QA6IkuRXs8HkMD+wZvWjAcEC0YDogWDAdEC4YDogXDAdGC4YBowWBM0x8gSwB/e60jZgAAAABJRU5ErkJggg== 就可以
在Python中却 data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUo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Vz4jVR/1p/1IlGdxj2jZaC6VDmQ5gB67KKvI4kQfrVxasD/60pfKQOVTdSTaRZ+VDajiZcT+mX0Wk9BGbTM7ykjmM/YZZSZelGc5oE9LTlrxNEYWD2S+D/BPGI0xzyIrlFGW9dmIC6Ux5n70zq9Vknr6bMKF0hhjDvAvc4wx5oBvhfK33t4GZnXGGPO6fHz8BxU1aFBAOg5rAAAAAElFTkSuQmCC
怎么解决啊 大佬教一下子

Twilight6 发表于 2020-7-26 10:11:44



卸载重装试试看?

卸载:
pip uninstall easygui

安装:
python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple

陈尚涵 发表于 2020-7-26 16:23:39

你说的CMD是在CMD里的python还是pip list?

临时号 发表于 2020-7-31 19:34:21

你指的是不是在命令行中用pyhon xxx.py执行和idle中执行,小甲鱼老湿说过easygui是运行在tkinter的一个事件循环上的,而IDLE也是运行在tkinter的一个事件循环上的,所以会冲突

陈尚涵 发表于 2020-8-3 11:31:31

临时号 发表于 2020-7-31 19:34
你指的是不是在命令行中用pyhon xxx.py执行和idle中执行,小甲鱼老湿说过

和这个好像没关系...因为你又没运行代码啊,只是导入问题,重装一下吧。

卸载:
pip uninstall easygui

安装
python -m pip install easygui -i https://pypi.tuna.tsinghua.edu.cn/simple

如果问题解决,请设置最佳答案!
页: [1]
查看完整版本: easygui在cmd中可以用 但在python中就不行是怎么肥事啊