markdown 强制pip在本地安装(复制)包

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 强制pip在本地安装(复制)包相关的知识,希望对你有一定的参考价值。

Citing Marcus Smith (maintainer of pip):

If you think the global site is out of date, and want the latest in the user site, then use:

`pip install --upgrade --user SomePackage`

If the global site is up to date, and you really just want the same thing duplicated in --user, then use:

`pip install --ignore-installed --user SomePackage`

(which works correctly now after the merge of #1352, which is to be released in v1.5)
How can I make pip install --user always go to ~/.local and not a system-wide directory?

Use both --upgrade and --ignore-installed arguments.

Source: <https://stackoverflow.com/a/20304268/162264>

以上是关于markdown 强制pip在本地安装(复制)包的主要内容,如果未能解决你的问题,请参考以下文章

Python本地安装numpy包

如何从 python 脚本调用 pip 并使其在本地安装到该脚本? [复制]

使用 pip 或 conda 管理包? [复制]

pip离线安装依赖包

离线下载pip包进行安装

如何冻结 pip 安装包的要求?