当前位置:网站首页>Pycharm common errors collection
Pycharm common errors collection
2022-07-21 20:23:00 【. Little Jane】
pycharm A collection of common mistakes
( If there are mistakes, thank you for your criticism and correction )
1. Tips and types of operation
V: | Show all information |
---|---|
D: | Display debug information |
I: | Display general information |
W: | Display warning message |
E: | Display error message |
2.pycharm library
Anaconda+TensorFlow install (Windows)
3.pycharm Running environment
1) About the running environment and libraries
Points to understand :
1. Python Running requires calling certain libraries
2. install anaconda,pycharm,Python, They usually bring their own Python, Load the warehouse in one of them , You have to reinstall it in the other one .( I understand that different operating environments have different libraries Python)
therefore , stay pycharm Before running a file , You need to set its running environment ( That is, when there are different libraries Python Running inside , Select running environment , Is to select the collection of libraries , Select a collection of libraries that can run the target program ).
Here are the differences Python The library in the library :
I installed three software , These three software correspond to different Python
------( among Python3.7 The library of )
About the mismatch between the library and the library version
Some library pairs Python There are restrictions on the version , Running some libraries requires special Python edition . Of course as Python Version upgrade , Its original library may change .( The in-depth content is still being explored )
pycharm,anaconda Library installation failed
I am using pycharm, The interpreter uses anaconda, So the next method can be applied to both software problems .
Report errors :(PackagesNotFoundError: The following packages are not available from current channels:
)
terms of settlement :
- Search for open anaconda prompt,
- python -m pip install Library name
Python Library downloads are slow or even stop
Link to the original text
Add a parameter after -i+ Mirror website , such as :
The following address can be changed to domestic pip Mirror image :
Alibaba cloud http://mirrors.aliyun.com/pypi/simple
douban http://pypi.douban.com/simple
Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple
China University of science and technology http://pypi.mirrors.ustc.edu.cn/simple
Netease cloud https://mirrors.163.com/pypi/simple
————————————————
Copyright notice : This paper is about CSDN Blogger 「AI bacteria 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/wjinjie/article/details/107225198
Example :
pip install --user tensorflow
pip install --user tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
installation error Cannot determine archive format of
Error prone code :
pip install opencv-python https://pypi.tuna.tsinghua.edu.cn/simple/
Error free code :
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn opencv-python
cv2 Library installation method
# When the download , This library is called opencv-python, When quoting, it is called cv2
import cv2
pip install opencv-python
边栏推荐
- [PCB] modify the default settings for items such as (via) (text string) (wiring linear dimension) in Altium designer
- 初学谷歌bert模型的预训练和fine-tuning微调
- ESP8266固件下载及烧录(收录AT固件下载地址+固件烧录注意事项)
- ES聚合统计语法
- PyTorch基础知识
- 【记录】Optisystem运行卡死,无法点击关闭、输入变量数值等问题解决方法
- 二叉树的4种遍历的递归与非递归实现
- 数据库连接不上
- Mac brew install MySQL installation steps
- Forms form validation
猜你喜欢
Data type map, empty string, empty key value and other judgment methods are the most detailed in the whole network
(environment configuration) TDD net
Checkpoint in the deep learning source code project
ftp不能创建多级目录【循环创建问题】
[PCB] modify the default settings for items such as (via) (text string) (wiring linear dimension) in Altium designer
pytorch的安装
初学谷歌bert模型的预训练和fine-tuning微调
合泰HT32--淘晶驰TJC--T0串口屏学习笔记(二)
[PCB] Based on stm32f103rct6 rocker - Bluetooth Module Development Board - drawing Board note arrangement
汇编语言大作业
随机推荐
mysql/sql server通过JDBC连接数据库进行增删改查的步骤
Data consistency of Nacos registry cluster
Solve zsh:command not found
OLED(经典0.96英寸)--4SPI--SSD1306控制原理(含常用芯片_oled例程)
汇编语言大作业
isEmpty与 isBlank
Resthighlevelclient syntax
数据库针对上面的salaries表emp_no字段创建索引idx_emp_no
3.从零开始paddlepaddle之基本模型构建(与keras和pytorch比对)
STM32F407-OV7670(无FIFO)-ONENET-实现摄像头画面上传到onenet(EDP协议)
Isempty and isblank
跑TDD-net遇到的一些坑
El radio value cannot be echoed
针对部分软件无法开机自启动情况的解决措施(已解决)
bert-serving
NIO之Channel详解
cv2的相关函数
(environment configuration) TDD net
[C language] some commonly used string functions -- learning notes
Pytorch installation