当前位置:网站首页>sublime text中conda环境中plt.show无法弹出显示图片的问题
sublime text中conda环境中plt.show无法弹出显示图片的问题
2022-07-06 08:27:00 【MAR-Sky】
在sublilme text(ST)输入下面简单的程序,但没有弹出图片
确定完成的工作:
- 使用到的库已经安装到对应的环境中
- 使用conda的ptython环境的设置和启动,参考:https://blog.csdn.net/weixin_43794311/article/details/124642874
- 配置好conda的python环境中的编译条件
import matplotlib.pyplot as plt
from PIL import Image
img = Image.open('1.jpg')#.convert('1')
plt.figure("beauty")
plt.imshow(img,)
plt.axis('off')
plt.show()
参考:https://www.zhihu.com/question/20539058/answer/1507424142
以往个人没怎么在ST使用plt.show()显示图片,发现是第三个步骤出现了问题,通过下面的设置解决问题
将打开的配置文件中修改,注意修改时每个命令之后要有逗号,否则会出现问题
"run_through_shell": true,

边栏推荐
- 使用 BR 备份 TiDB 集群数据到兼容 S3 的存储
- Yyds dry goods inventory three JS source code interpretation eventdispatcher
- 从 CSV 文件迁移数据到 TiDB
- 化不掉的钟薛高,逃不出网红产品的生命周期
- Bottom up - physical layer
- 2022.02.13 - NC002. sort
- 【MySQL】鎖
- ROS编译 调用第三方动态库(xxx.so)
- Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
- 【Nvidia开发板】常见问题集 (不定时更新)
猜你喜欢
随机推荐
延迟初始化和密封类
按位逻辑运算符
Vocabulary notes for postgraduate entrance examination (3)
堆排序详解
On the inverse order problem of 01 knapsack problem in one-dimensional state
2022.02.13 - NC004. Print number of loops
1. Color inversion, logarithmic transformation, gamma transformation source code - miniopencv from zero
Tidb backup and recovery introduction
Migrate data from a tidb cluster to another tidb cluster
Use br to back up tidb cluster data to S3 compatible storage
指针进阶---指针数组,数组指针
从 TiDB 集群迁移数据至另一 TiDB 集群
Circular reference of ES6 module
China's high purity aluminum target market status and investment forecast report (2022 Edition)
[cloud native] teach you how to build ferry open source work order system
hcip--mpls
String to leading 0
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
IoT -- 解读物联网四层架构
Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development




![[MySQL] lock](/img/ce/9f8089da60d9b3a3f92a5e4eebfc13.png)




