如何解决一个的virtualenv由PIP破碎安装<GIT中>

时间:2019-01-27 00:38:50

标签: python pip virtualenv

我正在尝试使用我自己对python-ogn-client的更新,该更新是在github中带有ogn-python的分支上进行的,该更新也是从github克隆的。如果我执行以下操作,则一切正常:

$ mkvirtualenv ogn-python
$ git clone git@github.com:matburnham/ogn-python.git ogn
$ pip install git+https://github.com/matburnham/python-ogn-client@hw_ver
$ pip install -r requirements.txt

但是,如果我在以前安装了股票pip install git+https://github.com/matburnham/python-ogn-client@hw_ver的现有virtualenv上执行python-ogn-client,那一切都会变得像梨形。最终,我不能revese它既不股票也不是我修改模块的作品:

$ OGN_CONFIG_MODULE=myconfig ./manage.py gateway.run
Traceback (most recent call last):
  File "./manage.py", line 4, in <module>
    from ogn.commands import manager as command_manager
  File "/home/mat/virtenvs/ogn-python/ogn/commands/__init__.py", line 1, in <module>
    from .database import manager as database_manager
  File "/home/mat/virtenvs/ogn-python/ogn/commands/database.py", line 4, in <module>
    from ogn.collect.database import update_device_infos, update_country_code
  File "/home/mat/virtenvs/ogn-python/ogn/collect/database.py", line 8, in <module>
    from ogn.utils import get_ddb, get_flarmnet
  File "/home/mat/virtenvs/ogn-python/ogn/utils.py", line 7, in <module>
    from ogn.parser.utils import FEETS_TO_METER
ModuleNotFoundError: No module named 'ogn.parser'

pip安装/卸载有什么调整?如何通过pip install ogn-client将其重置为稳定状态以重新安装库存或重试?


据我可以告诉它似乎触摸:

  • <virtualenv>/lib/python3.6/site-packages/ogn
  • <virtualenv>/lib/python3.6/site-packages/easy-install.pth
  • <virtualenv>/lib/python3.6/site-packages/ogn_client-0.9.1.dist-info/

但除去大量似乎没有解决它。

0 个答案:

没有答案