当前位置:网站首页>自动化测试摸索之路---准备工作
自动化测试摸索之路---准备工作
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
边栏推荐
- ruoyi框架中添加sharding sphere5.0.0分表(通过spi添加自定义分表策略)
- Qt学习09 计算器界面代码重构
- 通过网上进行股票开户安全吗
- When a technician becomes a CEO, what "bugs" should be modified?
- Cornerstone of efficient remote office: effective communication | community essay solicitation
- 美创入选信通院“业务安全推进计划”首批成员单位
- [HBZ sharing] the principle of reentrantlock realized by AQS + CAS +locksupport
- Encore une fois, le chemin de l'amélioration de redis Cloud
- Babbitt | yuancosmos daily must read: HTC announced the launch of the first yuancosmos mobile phone, which costs about 2700 yuan. What are the new ways to play
- Oracle expands distributed cloud services to bring comprehensive public cloud services to more customers
猜你喜欢

Live broadcast by technical experts from China Kuwait Fangde: how to build a private cloud platform based on openstack and CEPH| Issue 27
![LeetCode 535 TinyURL的加密与解密[map] HERODING的LeetCode之路](/img/76/709bbbbd8eb01f32683a96c4abddb9.png)
LeetCode 535 TinyURL的加密与解密[map] HERODING的LeetCode之路

稳定币风险状况:USDT 和 USDC 安全吗?

又拍云 Redis 的改进之路

What is the experience of working in an IT company in Japan?

Today in history: musk was born; Microsoft launches office 365; The inventor of Chua's circuit was born

Cornerstone of efficient remote office: effective communication | community essay solicitation

斐波那锲数列与冒泡排序法在C语言中的用法

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

The first "cyborg" in the world died, and he only transformed himself to "change his life against the sky"
随机推荐
基于鲲鹏开发套件实现x86平台到Kunpeng平台的源码迁移【玩转华为云】
ESP8266简介:三种编程方式「建议收藏」
QT learning 11 string classes in QT
Take another picture of cloud redis' improvement path
Leetcode 535 encryption and decryption of tinyurl [map] the leetcode road of heroding
MySQL开启慢查询
Bs-gx-018 student examination system based on SSM
Pull and push ideas behind rxjs observable design principles
[daily 3 questions (1)] judge the color of a grid on the chess board
Add notification announcements to send notifications to online users
请问股票开户收费吗 网上开户安全吗?
How to find out the wrong mobile number when querying MySQL
LeetCode 535 TinyURL的加密与解密[map] HERODING的LeetCode之路
美创入选信通院“业务安全推进计划”首批成员单位
【毕业季】总结过去,展望未来
ruoyi框架中添加sharding sphere5.0.0分表(通过spi添加自定义分表策略)
Rebuild confidence in China's scientific research - the latest nature index 2022 released that China's research output increased the most
通过网上进行股票开户安全吗
CICD简介[通俗易懂]
Record once MSI notebook ge63 plays webpage video flash screen and randomly turns green to solve the problem