当前位置:网站首页>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,
边栏推荐
- 堆排序详解
- Modify the video name from the name mapping relationship in the table
- Fibonacci sequence
- Bottom up - physical layer
- synchronized 解决共享带来的问题
- On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
- What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
- Precise query of tree tree
- Grayscale upgrade tidb operator
- 【刷题】牛客网面试必刷TOP101
猜你喜欢
MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
延迟初始化和密封类
Wincc7.5 download and installation tutorial (win10 system)
JVM performance tuning and practical basic theory - Part 1
Leetcode question brushing (5.28) hash table
2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
Pointer advanced --- pointer array, array pointer
Convolution, pooling, activation function, initialization, normalization, regularization, learning rate - Summary of deep learning foundation
MySQL learning records 12jdbc operation transactions
Online yaml to CSV tool
随机推荐
[research materials] 2022 China yuancosmos white paper - Download attached
Unified ordering background interface product description Chinese garbled
Restore backup data on S3 compatible storage with tidb lightning
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
leetcode刷题 (5.28) 哈希表
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
Mobile Test Engineer occupation yyds dry goods inventory
MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
Online yaml to CSV tool
704 二分查找
Precise query of tree tree
ESP series pin description diagram summary
Use br to back up tidb cluster data to S3 compatible storage
电脑清理,删除的系统文件
Introduction to number theory (greatest common divisor, prime sieve, inverse element)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
[brush questions] top101 must be brushed in the interview of niuke.com
【MySQL】数据库的存储过程与存储函数通关教程(完整版)
灰度升级 TiDB Operator
Wincc7.5 download and installation tutorial (win10 system)