系统和版本详细信息:
(venv)$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
这是python路径
$ which python/home/ubuntu/www/venv/bin/python
(venv) $ python --version
Python 2.7.12`
(venv)$ pip --version
pip 10.0.1 from /home/ubuntu/www/venv/lib/python2.7/site-packages/pip (python 2.7)
当我尝试安装时失败并出现以下错误:
(venv) $ pip install zbarlight
Collecting zbarlight
Installing collected packages: zbarlight
Exception:
Traceback (most recent call last):
File "/home/ubuntu/www/venv/lib/python2.7/site-packages/pip/_internal/basecommand.py", line 228, in main
status = self.run(options, args)
File "/home/ubuntu/www/venv/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 335, in run
use_user_site=options.use_user_site,
File "/home/ubuntu/www/venv/lib/python2.7/site-packages/pip/_internal/req/init.py", line 49, in install_given_reqs
**kwargs File "/home/ubuntu/www/venv/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 748, in install
use_user_site=use_user_site, pycompile=pycompile,
File "/home/ubuntu/www/venv/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 961, in move_wheel_files
warn_script_location=warn_script_location,
File "/home/ubuntu/www/venv/lib/python2.7/site-packages/pip/_internal/wheel.py", line 316, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: zbarlight .dist-info directory not found
我的环境出了问题,我无法弄清楚是什么。我该如何解决这个问题?