当前位置:网站首页>pdm的皮毛
pdm的皮毛
2022-06-25 21:57:00 【inrese】
最近学习了点pdm的皮毛知识。
pdm learn
# install pdm
pip install pdm
init pdm
# in a new project directory
mkdir pdm-test && cd pdm-test
pdm init
# answer serveral questions asked by PDM and a pyproject.toml will be created for you in the project.
pdm add requests
# install package requests for example
use pdm in vscode
VSCode设置PDM
将以下两项添加到 .vscode/settings.json 的顶层字典中:
{
“python.autoComplete.extraPaths”: [“pypackages/<major.minor>/lib”],
“python.analysis.extraPaths”: [“pypackages/<major.minor>/lib”]
}
注:上面的 <major.minor> 是 python 的版本号,如 pypackages/3.8/lib 。
export pdm env
# 导出环境到requirements.txt
pdm export -o requirements.txt
modify pdm config
# list the config of pdm
pdm config
# modify key to value
pdm config pypi.url http://mirrors.aliyun.com/pypi/simple/
# search for config
pdm config pypi.url
run python in pdm env
pdm run python main.py
import other env solutions such as pipenv, poetry into pdm
pdm import -f {file}
# 执行 pdm init or pdm install 时,会自动识别你当前的依赖情况并转换。
export pdm
# pdm have two core files, one is pyproject.toml and another is pdm.lock
边栏推荐
- The new version of Tencent's "peace elite" is coming: add a new account security protection system, and upgrade the detection of in-game violations
- 2022年中职组网络安全新赛题
- Network security project questions of the first Henan vocational skills competition in 2022
- 万亿热钱砸向太空经济,真的是一门好生意?
- Multi modal data can also be Mae? Berkeley & Google proposed m3ae to conduct Mae on image and text data! The optimal masking rate can reach 75%, significantly higher than 15% of Bert
- [dynamic programming] longest palindrome substring thinking about dynamic transfer cycle sequence
- What is 5g? What can 5g do? What will 5g bring in the future?
- Tiger Dao VC products are officially launched, a powerful supplement to seektiger ecology
- 2022-2028 global transmission type photoelectric circuit breaker industry research and trend analysis report
- Lecture 14 of the Blue Bridge Cup -- number theory [exercises]
猜你喜欢

2022-2028 global web and browser isolation platform industry research and trend analysis report

2022-2028 global proton exchange membrane hydrogen electrolyzer industry survey and trend analysis report

记|一次exists关键字的学习记录

Network security project questions of the first Henan vocational skills competition in 2022

String deformation (string case switching and realization)

2022-2028 global iridium electrode industry research and trend analysis report

万亿热钱砸向太空经济,真的是一门好生意?

Why is BeanUtils not recommended?

Fastjson反序列化随机性失败

2022-2028 global extrusion coating and lamination production line industry research and trend analysis report
随机推荐
Jz-064- maximum value of sliding window
2022-2028 global SiC igniter industry research and trend analysis report
2022-2028 global co extrusion production line industry research and trend analysis report
Network security project questions of the first Henan vocational skills competition in 2022
万亿热钱砸向太空经济,真的是一门好生意?
字符串变形(字符串大小写切换和变现)
Does jQuery cache any selectors- Does jQuery do any kind of caching of “selectors”?
不荒唐的茶小程序-规则改动
等价类,边界值,场景法的使用方法和运用场景
使用EAST ocr遇到的坑解决方法(编译lanms)
2022爱分析· IT运维厂商全景报告
Dio encapsulated by the flutter network request (cookie management, adding interceptors, downloading files, exception handling, canceling requests, etc.)
Which PHP open source works deserve attention
民航局:到 2025 年我国将初步建成安全、智慧、高效和绿色的航空物流体系
[eosio] eos/wax signature error is_ Canonical (c): signature is not canonical
小程序绘制一个简单的饼图
2、一个向量乘它的转置,其几何意义是什么?
Multi modal data can also be Mae? Berkeley & Google proposed m3ae to conduct Mae on image and text data! The optimal masking rate can reach 75%, significantly higher than 15% of Bert
2022-2028 global extrusion coating and lamination production line industry research and trend analysis report
Thinking while walking