Skip to content

Commit 6647c9d

Browse files
authored
Docs: Update pip.md for introducing install packages with a specific version (#43)
1 parent ff0ba9d commit 6647c9d

File tree

2 files changed

+13
-0
lines changed
  • docs
  • i18n/zh-cn/docusaurus-plugin-content-docs/current

2 files changed

+13
-0
lines changed

docs/pip.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ pip install package_name1 package_name2
1515
```
1616
It is similar to `npm install package1 package2` in JavaScript projects.
1717

18+
If you want to install a specific version of a third-party package, you can specify it using `==`, for example:
19+
20+
```shell
21+
pip install requests==2.20.0
22+
```
23+
It is similar to `npm install axios@0.21.1` in JavaScript projects.
24+
1825
:::tip Software Repository
1926
The official software repository for Python is https://pypi.org.
2027
:::

i18n/zh-cn/docusaurus-plugin-content-docs/current/pip.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ pip install package_name1 package_name2
1515
```
1616
它与 JavaScript 项目中的 `npm install package1 package2` 相似。
1717

18+
如果想要安装特定版本的第三方包,可以使用 `==` 来指定,如:
19+
```shell
20+
pip install requests==2.20.0
21+
```
22+
它与 JavaScript 项目中的 `npm install axios@0.21.1` 相似。
23+
1824
:::tip 软件仓库
1925
Python 的官方软件仓库为 https://pypi.org
2026
:::

0 commit comments

Comments
 (0)