Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Pdm
提交
c95d8736
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,体验更适合开发者的 AI 搜索 >>
未验证
提交
c95d8736
编写于
12月 13, 2021
作者:
F
Frost Ming
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fallback to virtualenv if venv fails to create
Fix #793
上级
6e960f34
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
9 deletion
+10
-9
README.md
README.md
+1
-1
README_zh.md
README_zh.md
+4
-4
docs/docs/index.md
docs/docs/index.md
+1
-1
install-pdm.py
install-pdm.py
+3
-3
news/793.misc.md
news/793.misc.md
+1
-0
未找到文件。
README.md
浏览文件 @
c95d8736
...
...
@@ -79,7 +79,7 @@ Like Pip, PDM provides an installation script that will install PDM into an isol
**For Linux/Mac**
```
bash
curl
-sSL
https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python -
curl
-sSL
https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python
3
-
```
**For Windows**
...
...
README_zh.md
浏览文件 @
c95d8736
...
...
@@ -49,9 +49,9 @@ foo
-
具备一个完备的插件系统
-
[PEP 621] 元数据格式
[
PEP
517
]:
https://www.python.org/dev/peps/pep-0517
[
PEP
582
]:
https://www.python.org/dev/peps/pep-0582
[
PEP
621
]:
https://www.python.org/dev/peps/pep-0621
[
pep
517
]:
https://www.python.org/dev/peps/pep-0517
[
pep
582
]:
https://www.python.org/dev/peps/pep-0582
[
pep
621
]:
https://www.python.org/dev/peps/pep-0621
## 为什么不用虚拟环境?
...
...
@@ -75,7 +75,7 @@ PDM 需要 Python 3.7 或更高版本。
**Linux/Mac 安装命令**
```
bash
curl
-sSL
https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python -
curl
-sSL
https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python
3
-
```
**Windows 安装命令**
...
...
docs/docs/index.md
浏览文件 @
c95d8736
...
...
@@ -35,7 +35,7 @@ Like Pip, PDM provides an installation script that will install PDM into an isol
=== "Linux/Mac"
```bash
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python -
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python
3
-
```
=== "Windows"
...
...
install-pdm.py
浏览文件 @
c95d8736
...
...
@@ -247,7 +247,9 @@ class Installer:
try
:
import
venv
except
ModuleNotFoundError
:
venv
.
create
(
venv_path
,
clear
=
False
,
with_pip
=
True
)
except
(
ModuleNotFoundError
,
subprocess
.
CalledProcessError
):
try
:
import
virtualenv
except
ModuleNotFoundError
:
...
...
@@ -264,8 +266,6 @@ class Installer:
)
else
:
virtualenv
.
cli_run
([
str
(
venv_path
)])
else
:
venv
.
create
(
venv_path
,
clear
=
False
,
with_pip
=
True
)
return
venv_path
...
...
news/793.misc.md
0 → 100644
浏览文件 @
c95d8736
Fix an installation failure of the bootstrap script on MacOS Catalina.
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录