我的桌面使用 ubuntu 10.04,服务器使用 Ubuntu 10.04 服务器版本。
以下命令:
sudo pip install -e git+http://github.com/facebook/python-sdk.git#egg=facebook
在我的桌面上工作,但在服务器上不起作用。
在服务器上,我收到以下错误消息:
Obtaining facebook from git+http://github.com/facebook/python-sdk.git#egg=facebook
Cloning http://github.com/facebook/python-sdk.git to ./src/facebook
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/pip/basecommand.py", line 115, in main
self.run(options, args)
File "/usr/local/lib/python2.6/dist-packages/pip/commands/install.py", line 155, in run
requirement_set.install_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/local/lib/python2.6/dist-packages/pip/req.py", line 805, in install_files
req_to_install.update_editable(not self.is_download)
File "/usr/local/lib/python2.6/dist-packages/pip/req.py", line 356, in update_editable
vcs_backend.obtain(self.source_dir)
File "/usr/local/lib/python2.6/dist-packages/pip/vcs/git.py", line 104, in obtain
[self.cmd, 'clone', '-q', url, dest])
File "/usr/local/lib/python2.6/dist-packages/pip/vcs/__init__.py", line 100, in cmd
raise BadCommand('Cannot find command %s' % self.name)
BadCommand: Cannot find command git
Storing complete log in ./pip-log.txt
我可以知道我错过了什么吗?我已经安装了pip,easy_install。我还错过了什么吗?
如何让命令正常工作?
谢谢你!