Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Pdm
提交
69d19df0
P
Pdm
项目概览
后端镜像
/
Pdm
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Pdm
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
69d19df0
编写于
6月 22, 2021
作者:
F
Frost Ming
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update docs about the install script
上级
19a5d8e1
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
122 addition
and
7 deletion
+122
-7
README.md
README.md
+39
-1
README_zh.md
README_zh.md
+40
-3
docs/docs/index.md
docs/docs/index.md
+42
-3
news/508.feature.md
news/508.feature.md
+1
-0
未找到文件。
README.md
浏览文件 @
69d19df0
...
@@ -65,10 +65,48 @@ environments. It is a relative new proposal and there are not many tools support
...
@@ -65,10 +65,48 @@ environments. It is a relative new proposal and there are not many tools support
is [pyflow]), but it is written with Rust and thus can't get much help from the big Python community.
is [pyflow]), but it is written with Rust and thus can't get much help from the big Python community.
For the same reason it can't act as a PEP 517 backend.
For the same reason it can't act as a PEP 517 backend.
## Installation
:
## Installation
PDM requires python version 3.7 or higher.
PDM requires python version 3.7 or higher.
Like Pip, PDM provides an installation script that will install PDM into an isolated environment.
**For Linux/Mac**
```
bash
curl
-sSL
https://raw.githubusercontent.com/pdm-project/pdm/install-pdm.py | python -
```
**For Windows**
```
powershell
(
Invoke-WebRequest
-Uri
https://raw.githubusercontent.com/pdm-project/pdm/install-pdm.py
-UseBasicParsing
)
.
Content
|
python
-
```
The installer will install PDM into the user site and the location depends on the system:
-
`$HOME/.local/bin`
for Unix
-
`%APPDATA%\Python\Scripts`
on Windows
You can pass additional options to the script to control how PDM is installed:
```
usage: install-pdm.py [-h] [-v VERSION] [--prerelease] [--remove] [-p PATH] [-d DEP]
optional arguments:
-h, --help show this help message and exit
-v VERSION, --version VERSION | envvar: PDM_VERSION
Specify the version to be installed, or HEAD to install from the main branch
--prerelease | envvar: PDM_PRERELEASE Allow prereleases to be installed
--remove | envvar: PDM_REMOVE Remove the PDM installation
-p PATH, --path PATH | envvar: PDM_HOME Specify the location to install PDM
-d DEP, --dep DEP | envvar: PDM_DEPS Specify additional dependencies, can be given multiple times
```
You can either pass the options after the script or set the env var value.
## Alternative Installation Methods
If you are on MacOS and using
`homebrew`
, install it by:
If you are on MacOS and using
`homebrew`
, install it by:
```
bash
```
bash
...
...
README_zh.md
浏览文件 @
69d19df0
...
@@ -60,11 +60,49 @@ foo
...
@@ -60,11 +60,49 @@ foo
没有很多相关的工具实现它,这其中就有 [pyflow]。但 pyflow 又是用 Rust 写的,不是所有 Python 的社区
没有很多相关的工具实现它,这其中就有 [pyflow]。但 pyflow 又是用 Rust 写的,不是所有 Python 的社区
都会用 Rust,这样就没法贡献代码,而且,基于同样的原因,pyflow 并不支持 PEP 517 构建。
都会用 Rust,这样就没法贡献代码,而且,基于同样的原因,pyflow 并不支持 PEP 517 构建。
## 安装
:
## 安装
PDM 需要 Python 3.7 或更高版本。
PDM 需要 Python 3.7 或更高版本。
如果你使用的是 MacOS 并且安装了
`homebrew`
:
像 pip 一样,PDM 也提供了一键安装脚本,用来将 PDM 安装在一个隔离的环境中。
**Linux/Mac 安装命令**
```
bash
curl
-sSL
https://raw.githubusercontent.com/pdm-project/pdm/install-pdm.py | python -
```
**Windows 安装命令**
```
powershell
(
Invoke-WebRequest
-Uri
https://raw.githubusercontent.com/pdm-project/pdm/install-pdm.py
-UseBasicParsing
)
.
Content
|
python
-
```
默认情况下,此脚本会将 PDM 安装在 Python 的用户目录下,具体位置取决于当前系统:
-
Unix 上是
`$HOME/.local/bin`
-
Windows 上是
`%APPDATA%\Python\Scripts`
你还可以通过命令行的选项来改变安装脚本的行为:
```
usage: install-pdm.py [-h] [-v VERSION] [--prerelease] [--remove] [-p PATH] [-d DEP]
optional arguments:
-h, --help show this help message and exit
-v VERSION, --version VERSION | envvar: PDM_VERSION
Specify the version to be installed, or HEAD to install from the main branch
--prerelease | envvar: PDM_PRERELEASE Allow prereleases to be installed
--remove | envvar: PDM_REMOVE Remove the PDM installation
-p PATH, --path PATH | envvar: PDM_HOME Specify the location to install PDM
-d DEP, --dep DEP | envvar: PDM_DEPS Specify additional dependencies, can be given multiple times
```
你既可以通过直接增加选项,也可以通过设置对应的环境变量来达到这一效果。
## 其他安装方法
如果你使用的是 MacOS 并且安装了
`homebrew`
:
```
bash
```
bash
$
brew
install
pdm
$
brew
install
pdm
...
@@ -145,7 +183,6 @@ $ python /home/frostming/workspace/flask_app/app.py
...
@@ -145,7 +183,6 @@ $ python /home/frostming/workspace/flask_app/app.py
[
Awesome PDM
](
https://github.com/pdm-project/awesome-pdm
)
这个项目收集了一些非常有用的 PDM 插件及相关资源。
[
Awesome PDM
](
https://github.com/pdm-project/awesome-pdm
)
这个项目收集了一些非常有用的 PDM 插件及相关资源。
## 常见问题
## 常见问题
### 1. `__pypackages__` 里都包含什么?
### 1. `__pypackages__` 里都包含什么?
...
...
docs/docs/index.md
浏览文件 @
69d19df0
...
@@ -28,6 +28,47 @@ PDM requires Python 3.7+ to be installed. It works on multiple platforms includi
...
@@ -28,6 +28,47 @@ PDM requires Python 3.7+ to be installed. It works on multiple platforms includi
### Recommended installation method
### Recommended installation method
PDM requires python version 3.7 or higher.
Like Pip, PDM provides an installation script that will install PDM into an isolated environment.
**For Linux/Mac**
```
bash
curl
-sSL
https://raw.githubusercontent.com/pdm-project/pdm/install-pdm.py | python -
```
**For Windows**
```
powershell
(
Invoke-WebRequest
-Uri
https://raw.githubusercontent.com/pdm-project/pdm/install-pdm.py
-UseBasicParsing
)
.
Content
|
python
-
```
The installer will install PDM into the user site and the location depends on the system:
-
`$HOME/.local/bin`
for Unix
-
`%APPDATA%\Python\Scripts`
on Windows
You can pass additional options to the script to control how PDM is installed:
```
usage: install-pdm.py [-h] [-v VERSION] [--prerelease] [--remove] [-p PATH] [-d DEP]
optional arguments:
-h, --help show this help message and exit
-v VERSION, --version VERSION | envvar: PDM_VERSION
Specify the version to be installed, or HEAD to install from the main branch
--prerelease | envvar: PDM_PRERELEASE Allow prereleases to be installed
--remove | envvar: PDM_REMOVE Remove the PDM installation
-p PATH, --path PATH | envvar: PDM_HOME Specify the location to install PDM
-d DEP, --dep DEP | envvar: PDM_DEPS Specify additional dependencies, can be given multiple times
```
You can either pass the options after the script or set the env var value.
### Other installation methods
If your are on MacOS and using
`homebrew`
, install it by:
If your are on MacOS and using
`homebrew`
, install it by:
```
bash
```
bash
...
@@ -41,9 +82,7 @@ is via [pipx](https://pypi.org/project/pipx):
...
@@ -41,9 +82,7 @@ is via [pipx](https://pypi.org/project/pipx):
$
pipx
install
pdm
$
pipx
install
pdm
```
```
### Other installation methods
Or you can install PDM into the user site with
`pip`
:
Install PDM into user site with
`pip`
:
```
console
```
console
$
pip
install
--user
pdm
$
pip
install
--user
pdm
...
...
news/508.feature.md
0 → 100644
浏览文件 @
69d19df0
Add an install script to bootstrap PDM quickly without help of other tools. Modify docs to recommend this installation method.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录