Python-pip:通过pip的Invoice2data软件包安装错误

时间:2019-04-29 07:52:38

标签: python python-2.7 pip

我正在尝试通过pip安装invoice2data软件包,但出现以下错误:

ERROR: Exception: Traceback (most recent call last): File
"/home/webwerks/.local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py",
line 178, in main status = self.run(options, args) File
"/home/webwerks/.local/lib/python2.7/site-packages/pip/_internal/commands/install.py",
line 414, in run use_user_site=options.use_user_site, File
"/home/webwerks/.local/lib/python2.7/site-packages/pip/_internal/req/__init__.py",
line 58, in install_given_reqs
**kwargs File "/home/webwerks/.local/lib/python2.7/site-packages/pip/_internal/req/req_install.py",
line 922, in install use_user_site=use_user_site, pycompile=pycompile,
File
"/home/webwerks/.local/lib/python2.7/site-packages/pip/_internal/req/req_install.py",
line 448, in move_wheel_files
warn_script_location=warn_script_location, File
"/home/webwerks/.local/lib/python2.7/site-packages/pip/_internal/wheel.py",
line 428, in move_wheel_files assert info_dir, "%s .dist-info
directory not found" % req AssertionError: invoice2data .dist-info
directory not found
Ubuntu : 16.04  
python : Python 2.7.12  
pip : pip 19.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

我尝试完全卸载pip,然后再次重新安装仍然出现相同的错误。还尝试了其他StackOverflow解决方案,但仍然无济于事。

1 个答案:

答案 0 :(得分:-1)

我在python 3.7.2中尝试了该命令,并且安装成功。这是使用的命令 “ python -m pip安装invoice2data”