当前位置:网站首页>自动化测试摸索之路---准备工作
自动化测试摸索之路---准备工作
2022-06-29 10:56:00 【左左才】
简单配置pycahrm
配置头文件
- 点击[文件] —点击[设置]

- 点击[File and code Templates] — 点击[Python Script]
- 输入:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : chairDu
# @Email : [email protected]
# @File : ${NAME}.py
# @DataTime : ${YEAR}-${MONTH}-${DAY} ${HOUR}:${MINUTE}
# @Description :
第一行内容: 设置 python 默认解析器第二行内容: 设置 utf-8 默认编码格式第三行内容: 设置 用户名第四行内容: 设置 邮箱第五行内容: 设置 当前文件名称第六行内容: 设置 当前时间,年-月-日 时:分第七行内容: 设置 备注
- 点击[应用] — 点击[保存]

下载第三方库
- 新建项目
demoProject新建包database新建文件databaseSqlite

pycharm内置下载
- 输入
import sqlite3导入sqlite3框架的时候,pycharm会标红报错
- 点击
sqlite3点击报错提示的小灯泡点击install package micropython-sqlite3即可
访问网站下载框架https://pypi.org/
输入
micropython-sqlite3点击[搜索]
- 点击 [micropython-sqlite3]跳转至https://pypi.org/project/micropython-sqlite3/点击[ Download files ]

点击[ micropython-sqlite3-0.2.3.tar.gz ]下载
把下载好的文件解压到python目录下的site-packages中
\Python\Lib\site-packages

复制路径
D:\py\Python\Lib\site-packages,将其添加到环境变量右键[此电脑]-[属性]

高级系统设置

环境变量

双击[path]

点击[新建],粘贴路径,点击[确定]

访问网站下载框架https://pypi.org/
- 右键左下角[开始]
- 点击[运行]
- 输入[cmd]
- 点击[确定]

- 输入
pip install micropython-sqlite3即可
或者
参考:https://packaging.python.org
- 访问 https://pypi.org/project/跳转网站下载
SomeProject.whl文件
进入cmd管理员页面,使用命令安装
pip install SomeProject.wh
- 进入
cmd管理员页面,直接使用命令安装
py -m pip install SomeProject 安装最新包
py -m pip install SomeProject==1.4 安装指定版本
py -m pip install SomeProject>=1,<2 安装区间版本
- 进入
cmd管理员页面,直接使用升级包
py -m pip install --upgrade SomeProject
- 进入
cmd管理员页面,直接使用升级包
py -m pip install --extra-index-url http://my.package.repo/simple SomeProject
- 访问 https://pypi.org/project/跳转网站下载
SomeProject.whl文件
SomeProject.whl文件名字改为>>SomeProject.zip,
解压文件放到Python310\Lib\site-packages路径下
查看包信息:
pip show SomeProject
边栏推荐
- 稳定币风险状况:USDT 和 USDC 安全吗?
- Haitai Advanced Technology | application of privacy computing technology in medical data protection
- QT learning 11 string classes in QT
- Record once MSI notebook ge63 plays webpage video flash screen and randomly turns green to solve the problem
- Is it safe to open a stock account online
- Safety innovation practice | Haitai Fangyuan was invited to participate in the technical exchange Seminar on "network information innovation and value co creation in the digital age"
- [3 questions per day (2)] minimum operand for generating alternate binary strings
- 安全 创新 实践|海泰方圆受邀参加“数字时代的网信创新与价值共创”技术交流研讨会
- 喜报|海泰方圆通过CMMI-3资质认证,研发能力获国际认可
- Take another picture of cloud redis' improvement path
猜你喜欢

Bs-gx-018 student examination system based on SSM

【毕业季】总结过去,展望未来

小白学习MySQL - 增量统计SQL的需求 - 开窗函数的方案

What are the main factors that affect the heat dissipation of LED packaging?

How to test the performance of container platform, including stability, expansion efficiency and component performance

When a technician becomes a CEO, what "bugs" should be modified?

软件工程导论——第五章——总体设计

高效远程办公的基石:有效沟通 |社区征文

Object class - the father of ten thousand classes
![[graduation season] summarize the past and look forward to the future](/img/9e/e0028e8328a8103793066e1eb1f99a.png)
[graduation season] summarize the past and look forward to the future
随机推荐
Today in history: musk was born; Microsoft launches office 365; The inventor of Chua's circuit was born
Is it safe to open a stock account online
The former security director of Uber faced fraud allegations and concealed the data leakage event
合约量化交易系统玩法开发 (现成案例分析)
Evaluation of IP location query interface Ⅱ
【HBZ分享】Mysql的InnoDB原理
Doodle cloud development demo login
win11网页版
【文献翻译】Concealed Object Detection(伪装目标检测)
Nature | biosynthetic potential of global marine microbiome
又拍雲 Redis 的改進之路
(JS) catch errors (exceptions)
(JS) array flat
Return value‘s Lifetime
(JS) array de duplication
MySQL enable slow query
又拍云 Redis 的改进之路
Qt学习16 Qt 对象间的父子关系
Opencv4.0 installation of raspberry pie for Xiaobai
(JS) iterator mode