当前位置:网站首页>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,
边栏推荐
- 根据csv文件某一列字符串中某个数字排序
- matplotlib. Widgets are easy to use
- China Light conveyor belt in-depth research and investment strategy report (2022 Edition)
- Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
- synchronized 解决共享带来的问题
- 2022.02.13 - NC004. Print number of loops
- String to leading 0
- 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
- 按位逻辑运算符
- Sort according to a number in a string in a column of CSV file
猜你喜欢
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
hcip--mpls
Yyds dry goods inventory three JS source code interpretation eventdispatcher
Wincc7.5 download and installation tutorial (win10 system)
[MySQL] lock
On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
Use Alibaba icon in uniapp
随机推荐
Cisp-pte practice explanation
Restore backup data on S3 compatible storage with tidb lightning
Colorlog结合logging打印有颜色的日志
Ruffian Heng embedded bimonthly, issue 49
Upgrade tidb operator
egg. JS directory structure
TiDB备份与恢复简介
从表中名称映射关系修改视频名称
Fibonacci sequence
vulnhub hackme: 1
[MySQL] lock
LDAP应用篇(4)Jenkins接入
Restore backup data on S3 compatible storage with br
MySQL learning record 10getting started with JDBC
Let the bullets fly for a while
Online yaml to CSV tool
[luatos-air551g] 6.2 repair: restart caused by line drawing
China's high purity aluminum target market status and investment forecast report (2022 Edition)
[research materials] 2021 live broadcast annual data report of e-commerce - Download attached
[2022 广东省赛M] 拉格朗日插值 (多元函数极值 分治NTT)