当前位置:网站首页>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,
边栏推荐
- Browser thread
- 3. File operation 3-with
- 灰度升级 TiDB Operator
- All the ArrayList knowledge you want to know is here
- MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
- Pyqt5 development tips - obtain Manhattan distance between coordinates
- Convolution, pooling, activation function, initialization, normalization, regularization, learning rate - Summary of deep learning foundation
- VMware 虚拟化集群
- Modify the video name from the name mapping relationship in the table
- Use dumping to back up tidb cluster data to S3 compatible storage
猜你喜欢
[MySQL] lock
Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
[research materials] 2021 China online high growth white paper - Download attached
Pyqt5 development tips - obtain Manhattan distance between coordinates
[brush questions] top101 must be brushed in the interview of niuke.com
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
What is CSRF (Cross Site Request Forgery)?
堆排序详解
【MySQL】日志
电脑清理,删除的系统文件
随机推荐
[research materials] 2022 enterprise wechat Ecosystem Research Report - Download attached
Verrouillage [MySQL]
Rviz仿真时遇到机器人瞬间回到世界坐标原点的问题及可能原因
Golang force buckle leetcode 1020 Number of enclaves
[cloud native topic -45]:kubesphere cloud Governance - Introduction and overall architecture of enterprise container platform based on kubernetes
pcd转ply后在meshlab无法打开,提示 Error details: Unespected eof
Synchronized solves problems caused by sharing
Zhong Xuegao, who cannot be melted, cannot escape the life cycle of online celebrity products
MySQL learning record 07 index (simple understanding)
What is CSRF (Cross Site Request Forgery)?
[research materials] 2021 China online high growth white paper - Download attached
All the ArrayList knowledge you want to know is here
Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?
On the inverse order problem of 01 knapsack problem in one-dimensional state
Pyqt5 development tips - obtain Manhattan distance between coordinates
MySQL learning record 10getting started with JDBC
JVM performance tuning and practical basic theory - Part 1
Use Alibaba icon in uniapp
gcc动态库fPIC和fpic编译选项差异介绍