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

边栏推荐
- Configuring OSPF load sharing for Huawei devices
- IOT -- interpreting the four tier architecture of the Internet of things
- Pyqt5 development tips - obtain Manhattan distance between coordinates
- Let the bullets fly for a while
- 2022.02.13 - NC002. sort
- logback1.3. X configuration details and Practice
- Golang force buckle leetcode 1020 Number of enclaves
- What is CSRF (Cross Site Request Forgery)?
- Restore backup data on S3 compatible storage with br
- Bottom up - physical layer
猜你喜欢

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

IOT -- interpreting the four tier architecture of the Internet of things

Bottom up - physical layer

3. File operation 3-with

延迟初始化和密封类

Beijing invitation media

Sort according to a number in a string in a column of CSV file

Leetcode question brushing (5.28) hash table

sublime text的编写程序时的Tab和空格缩进问题

2022.02.13 - NC003. Design LRU cache structure
随机推荐
egg. JS directory structure
按位逻辑运算符
JVM performance tuning and practical basic theory - Part 1
从 CSV 文件迁移数据到 TiDB
2022.02.13 - NC004. Print number of loops
堆排序详解
ROS编译 调用第三方动态库(xxx.so)
Chrome浏览器的crash问题
Pointer advanced --- pointer array, array pointer
sublime text的编写程序时的Tab和空格缩进问题
Online yaml to CSV tool
Research Report on supply and demand and development prospects of China's high purity aluminum market (2022 Edition)
matplotlib. Widgets are easy to use
Erc20 token agreement
FairGuard游戏加固:游戏出海热潮下,游戏安全面临新挑战
[MySQL] lock
Image fusion -- challenges, opportunities and Countermeasures
【MySQL】锁
Mobile Test Engineer occupation yyds dry goods inventory
LDAP application (4) Jenkins access