当前位置:网站首页>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,

边栏推荐
- Bottom up - physical layer
- Grayscale upgrade tidb operator
- CISP-PTE实操练习讲解
- JVM 快速入门
- 2022 Inner Mongolia latest water conservancy and hydropower construction safety officer simulation examination questions and answers
- String to leading 0
- LDAP application (4) Jenkins access
- Migrate data from a tidb cluster to another tidb cluster
- 移位运算符
- Circular reference of ES6 module
猜你喜欢

Process of obtaining the electronic version of academic qualifications of xuexin.com

leetcode刷题 (5.28) 哈希表

The resources of underground pipe holes are tight, and the air blowing micro cable is not fragrant?

2. File operation - write

Deep learning: derivation of shallow neural networks and deep neural networks

MySQL learning record 10getting started with JDBC
![[brush questions] top101 must be brushed in the interview of niuke.com](/img/55/5ca957e65d48e19dbac8043e89e7d9.png)
[brush questions] top101 must be brushed in the interview of niuke.com

化不掉的钟薛高,逃不出网红产品的生命周期

MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object

Summary of phased use of sonic one-stop open source distributed cluster cloud real machine test platform
随机推荐
egg. JS getting started navigation: installation, use and learning
Beijing invitation media
灰度升级 TiDB Operator
Tidb backup and recovery introduction
ESP系列引脚说明图汇总
All the ArrayList knowledge you want to know is here
1. Color inversion, logarithmic transformation, gamma transformation source code - miniopencv from zero
Restore backup data on S3 compatible storage with tidb lightning
sys.argv
Pyqt5 development tips - obtain Manhattan distance between coordinates
synchronized 解决共享带来的问题
LDAP应用篇(4)Jenkins接入
Cisp-pte practice explanation
Circular reference of ES6 module
游戏解包的危害及资源加密的重要性
logback1.3. X configuration details and Practice
Precise query of tree tree
gcc动态库fPIC和fpic编译选项差异介绍
升级 TiDB Operator
Convolution, pooling, activation function, initialization, normalization, regularization, learning rate - Summary of deep learning foundation