当前位置:网站首页>Pypharm uses, and the third-party library has errors due to version problems
Pypharm uses, and the third-party library has errors due to version problems
2022-07-07 23:48:00 【Black faced boy】
Recently started deep learning , Due to Python2 and Python3 Version incompatibility has caused some problems
1、PIL Installation failed
Python3 It should be pillow But still import
from PIL import Image
Here is a quick way to install third-party libraries ,Pycharm It will automatically remind you to install the required libraries , Click to . To improve speed, use mirroring , Tsinghua image is used here . Click the plus sign in the figure below , Manually search third-party libraries .
Click on the position shown in the figure , Modify the download path of the third-party library to :Simple Index
2、scipy.misc There is no hint imsave
resolvent , hold scipy Change to imageio
import imageio
imageio.imsave(new_filename, pic)
3、 In the use of writer.writerow() When prompted, you should enter something like bytes Type, not str type
Or because writer.writerow() Generate blank lines , Use the following methods
rnacsv = open(rnafile,'w',newline='') writer = csv.writer(rnacsv) m = len(rnastructure)
for i in range(m): writer.writerow(rnastructure[i])
4、pycharm Breakpoint settings
Click in front of each line , Click the green Ladybug button when running
边栏推荐
- Benchmarking Detection Transfer Learning with Vision Transformers(2021-11)
- 自动化测试:Robot FrameWork框架90%的人都想知道的实用技巧
- Wechat applet development beginner 1
- Anxinco EC series modules are connected to the multi protocol access products of onenet Internet of things open platform
- Boost regex library source code compilation
- May day C - most
- Flash encryption process and implementation of esp32
- Traduction gratuite en un clic de plus de 300 pages de documents PDF
- Connect diodes in series to improve voltage withstand
- JNI uses asan to check memory leaks
猜你喜欢
c—线性表
Flash encryption process and implementation of esp32
Rectification characteristics of fast recovery diode
About the difference between ch32 library function and STM32 library function
二叉排序树【BST】——创建、查找、删除、输出
SAP HR labor contract information 0016
激光slam学习(2D/3D、偏实践)
FFA与ICGA造影
【路径规划】使用垂距限值法与贝塞尔优化A星路径
Apng2gif solutions to various problems
随机推荐
Chisel tutorial - 01 Introduction to Scala
2022.7.7-----leetcode. six hundred and forty-eight
企业应用需求导向开发之人力部门,员工考勤记录和实发工资业务程序案例
@Detailed introduction of configuration annotation
Class C design questions
35岁那年,我做了一个面临失业的决定
C language greedy snake
0-1 knapsack problem
Rock-paper-scissors
The file format and extension of XLS do not match
数据分析系列 之3σ规则/依据拉依达准则来剔除异常值
Alibaba cloud MySQL cannot connect
@Configuration注解的详细介绍
平衡二叉樹【AVL樹】——插入、删除
Where are you going
Slam interview summary
C method question 2
【leetcode】day1
自动化测试:Robot FrameWork框架90%的人都想知道的实用技巧
【7.4】25. Turn over the linked list in groups of K