Pio*_*ost 8 python version-control pip
默认情况下,pip会将可编辑的包安装到src安装Python的目录的子目录中.
我想使用pip支持从源控件中检出包,从版本控制到我选择的目录中安装一个包,例如:
pip install -e git+https://github.com/kennethreitz/requests.git@355b97165c#egg=requests-org
Run Code Online (Sandbox Code Playgroud)
这可能吗?
pip help install 说:
--src=DIR, --source=DIR, --source-dir=DIR, --source-directory=DIR
Check out --editable packages into DIR
Run Code Online (Sandbox Code Playgroud)
例如:
pip install -e git+https://github.com/kennethreitz/requests.git@355b97165c#egg=requests-org --source-directory=/tmp
Run Code Online (Sandbox Code Playgroud)
将安装请求源 /tmp/requests-org