Python 从git安装包时pip中断

Python 从git安装包时pip中断,python,python-3.x,pip,Python,Python 3.x,Pip,我最近需要在bitbucket中安装一个库。我在另一台计算机上成功运行了以下命令: pip install -e git+https://my_name@bitbucket.org/xxx/python_library.git#egg=xxx_python_library 但是,在另一台机器上,我得到了以下错误: Exception: Traceback (most recent call last): File "c:\users\xx\pycharmprojects\venv

我最近需要在bitbucket中安装一个库。我在另一台计算机上成功运行了以下命令:

pip install -e git+https://my_name@bitbucket.org/xxx/python_library.git#egg=xxx_python_library
但是,在另一台机器上,我得到了以下错误:

Exception:
Traceback (most recent call last):
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\vcs\git.py", line 268, in get_remote_url
    found_remote = remotes[0]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\cli\base_command.py", line 179, in main
    status = self.run(options, args)
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\commands\install.py", line 315, in run
    resolver.resolve(requirement_set)
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\resolve.py", line 131, in resolve
    self._resolve_one(requirement_set, req)
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\resolve.py", line 294, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\resolve.py", line 226, in _get_abstract_dist_for
    req, self.require_hashes, self.use_user_site, self.finder,
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\operations\prepare.py", line 378, in prepare_editable_requirement
    req.update_editable(not self._download_should_save)
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\req\req_install.py", line 787, in update_editable
    vcs_backend.obtain(self.source_dir)
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\vcs\__init__.py", line 362, in obtain
    existing_url = self.get_remote_url(dest)
  File "c:\users\xx\pycharmprojects\venvs\proj\lib\site-packages\pip-19.0.3-py3.6.egg\pip\_internal\vcs\git.py", line 270, in get_remote_url
    raise RemoteNotFoundError
pip._internal.vcs.RemoteNotFoundError

python:3.6 pip:21.0.1


有人有办法解决这个问题吗?

stacktrace清楚地显示您使用的是pip 19.0.3,而不是21.0.1