Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
后端镜像
Pdm
提交
fee04e5e
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 搜索 >>
未验证
提交
fee04e5e
编写于
11月 04, 2021
作者:
F
Frost Ming
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Re-install `pip` inside the venv
Close #685
上级
5daea2bd
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
3 deletion
+12
-3
README.md
README.md
+3
-1
README_zh.md
README_zh.md
+4
-2
install-pdm.py
install-pdm.py
+4
-0
news/685.bugfix.md
news/685.bugfix.md
+1
-0
未找到文件。
README.md
浏览文件 @
fee04e5e
...
...
@@ -72,6 +72,8 @@ is [pyflow], but it is written with Rust and thus can't get much help from the b
PDM requires python version 3.7 or higher.
### Via Install Script
Like Pip, PDM provides an installation script that will install PDM into an isolated environment.
**For Linux/Mac**
...
...
@@ -108,7 +110,7 @@ optional arguments:
You can either pass the options after the script or set the env var value.
## Alternative Installation Methods
##
#
Alternative Installation Methods
If you are on MacOS and using
`homebrew`
, install it by:
...
...
README_zh.md
浏览文件 @
fee04e5e
...
...
@@ -68,6 +68,8 @@ foo
PDM 需要 Python 3.7 或更高版本。
### 通过安装脚本
像 pip 一样,PDM 也提供了一键安装脚本,用来将 PDM 安装在一个隔离的环境中。
**Linux/Mac 安装命令**
...
...
@@ -104,7 +106,7 @@ optional arguments:
你既可以通过直接增加选项,也可以通过设置对应的环境变量来达到这一效果。
## 其他安装方法
##
#
其他安装方法
如果你使用的是 MacOS 并且安装了
`homebrew`
:
...
...
@@ -112,7 +114,7 @@ optional arguments:
$
brew
install
pdm
```
如果你在
Windows
上使用
[
Scoop
](
https://scoop.sh/
)
, 运行以下命令安装:
如果你在
Windows
上使用
[
Scoop
](
https://scoop.sh/
)
, 运行以下命令安装:
```
PS> scoop bucket add frostming https://github.com/frostming/scoop-frostming.git
...
...
install-pdm.py
浏览文件 @
fee04e5e
...
...
@@ -290,6 +290,10 @@ class Installer:
else
:
venv_python
=
venv_path
/
"bin/python"
# Re-install the venv pip to ensure it's not DEBUNDLED
# See issue/685
_call_subprocess
([
str
(
venv_python
),
"-m"
,
"pip"
,
"install"
,
"-IU"
,
"pip"
])
if
self
.
version
:
if
self
.
version
.
upper
()
==
"HEAD"
:
req
=
f
"git+
{
REPO
}
.git@main#egg=pdm"
...
...
news/685.bugfix.md
0 → 100644
浏览文件 @
fee04e5e
Fix the install script to ensure
`pip`
is not DEBUNDLED.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录