我观察了一个非常难以预测的pip行为,我有以下简单的requirements.txt文件:
future >= 0.16.0
git+https://github.com/SamuelDudley/MAVProxy.git@wx_phoenix_wip
git+https://github.com/udacity/udacidrone.git@master
执行时:
pip install -r requirements.txt
我收到以下消息:
Collecting git+https://github.com/udacity/udacidrone.git@master (from -r requirements.txt (line 8))
Cloning https://github.com/udacity/udacidrone.git (to master) to /tmp/pip-tf1hz9hg-build
Requirement already satisfied (use --upgrade to upgrade): udacidrone==0.2.0 from git+https://github.com/udacity/udacidrone.git@master in /home/peng/git-drone/__Udacity__/udacidrone (from -r requirements.txt (line 8))
Collecting git+https://github.com/SamuelDudley/MAVProxy.git@wx_phoenix_wip (from -r requirements.txt (line 17))
Cloning https://github.com/SamuelDudley/MAVProxy.git (to wx_phoenix_wip) to /tmp/pip-j6hsfp8z-build
Requirement already satisfied (use --upgrade to upgrade): MAVProxy==1.6.2 from git+https://github.com/SamuelDudley/MAVProxy.git@wx_phoenix_wip in /opt/conda3/lib/python3.6/site-packages (from -r requirements.txt (line 17))
表明只有MAVProxy正确安装到python库中,这是' /opt/conda3/lib/python3.6/site-packages'
但项目udacidrone未正确安装到' / home / peng / git-drone / Udacity / udacidrone'
为什么pip行为不一致?我使用最新的Anaconda 3环境,没有virtualenv或pyenv。
非常感谢你的帮助!