pip install <dot> 是什么意思?

Kon*_*ong 3 pip

我正在安装这个https://github.com/wkentaro/pytorch-fcn。它告诉我执行此指令。

git clone https://github.com/wkentaro/pytorch-fcn.git
cd pytorch-fcn
pip install .
Run Code Online (Sandbox Code Playgroud)

什么pip install .意思?只需键入 dot 即可运行哪个文件夹或文件?setup.py?

Ame*_*aVS 7

基本上,您是在指定pip包管理器从中提取包信息的位置。
例如:

# Get the Source code
git clone https://github.com/wkentaro/pytorch-fcn.git

# Change into the cloned git repository:pytorch-fcn
cd pytorch-fcn

# Install the package definitions from current location i.e. pytorch-fcn.
pip install .
Run Code Online (Sandbox Code Playgroud)

这里是一个简单的描述: pip执行setup.py加载requirements.txt了依赖包的文本表示。

参考:

  1. 此处提供的是pip.
  2. 要获得更好的 Python 开发工作流程,请参阅此处了解您应该使用pipvirtualenv.