当前位置:网站首页>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,
边栏推荐
- IoT -- 解读物联网四层架构
- Migrate data from CSV files to tidb
- 【MySQL】日志
- [cloud native] teach you how to build ferry open source work order system
- leetcode刷题 (5.31) 字符串
- Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
- JVM 快速入门
- IOT -- interpreting the four tier architecture of the Internet of things
- vulnhub hackme: 1
- Colorlog结合logging打印有颜色的日志
猜你喜欢
Cisp-pte practice explanation
Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
【ROS】usb_cam相机标定
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
ESP系列引脚说明图汇总
2022 Inner Mongolia latest construction tower crane (construction special operation) simulation examination question bank and answers
What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
Leetcode question brushing (5.28) hash table
Let the bullets fly for a while
堆排序详解
随机推荐
ESP系列引脚说明图汇总
Migrate data from a tidb cluster to another tidb cluster
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
Wincc7.5 download and installation tutorial (win10 system)
vulnhub hackme: 1
延迟初始化和密封类
[2022 Guangdong saim] Lagrange interpolation (multivariate function extreme value divide and conquer NTT)
游戏解包的危害及资源加密的重要性
On the inverse order problem of 01 knapsack problem in one-dimensional state
Cisp-pte practice explanation
sublime text没关闭其他运行就使用CTRL+b运行另外的程序问题
LDAP应用篇(4)Jenkins接入
Introduction to backup and recovery Cr
【Nvidia开发板】常见问题集 (不定时更新)
VMware virtualization cluster
按位逻辑运算符
VMware 虚拟化集群
egg. JS directory structure
On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
【MySQL】鎖