问题报错描述:
Python 3.7.4 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pcdet
fatal: Not a git repository (or any of the parent directories): .git
>>> exit()
错误原因:配置的环境中没有.git这样一个目录
解决方法:
(base) root@ovo:/# git init
Initialized empty Git repository in /.git/
测试成功结果展示:
Python 3.7.4 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pcdet
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
>>> import pcdet
>>> import pcdet
>>>