我正在尝试使用我自己对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/
但除去大量似乎没有解决它。