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

边栏推荐
- Image fusion -- challenges, opportunities and Countermeasures
- Introduction to number theory (greatest common divisor, prime sieve, inverse element)
- Erc20 token agreement
- MySQL learning record 07 index (simple understanding)
- Modify the video name from the name mapping relationship in the table
- Yyds dry goods inventory three JS source code interpretation eventdispatcher
- What is the use of entering the critical point? How to realize STM32 single chip microcomputer?
- [research materials] 2021 China online high growth white paper - Download attached
- 【MySQL】数据库的存储过程与存储函数通关教程(完整版)
- leetcode刷题 (5.31) 字符串
猜你喜欢

2022.02.13 - NC001. Reverse linked list

Configuring OSPF load sharing for Huawei devices

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

【ROS】usb_cam相机标定

JS native implementation shuttle box

面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读

MySQL learning record 10getting started with JDBC

2022.02.13 - 238. Maximum number of "balloons"

Let the bullets fly for a while

Unified ordering background interface product description Chinese garbled
随机推荐
704 二分查找
Fibonacci sequence
Migrate data from SQL files to tidb
How to use information mechanism to realize process mutual exclusion, process synchronization and precursor relationship
Pointer advanced --- pointer array, array pointer
sys. argv
ESP系列引脚说明图汇总
Leetcode question brushing (5.31) string
化不掉的钟薛高,逃不出网红产品的生命周期
LDAP application (4) Jenkins access
Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
【刷题】牛客网面试必刷TOP101
Restore backup data on S3 compatible storage with tidb lightning
IOT -- interpreting the four tier architecture of the Internet of things
Mobile Test Engineer occupation yyds dry goods inventory
Browser thread
matplotlib. Widgets are easy to use
leetcode刷题 (5.29) 哈希表
Analysis of pointer and array written test questions
延迟初始化和密封类