我正在尝试使用以下方法安装snapcraft的要求:
pipenv install -r snapcraft/requirements.txt
并且无法安装这两个依赖项:
https://launchpad.net/ubuntu/+archive/primary/+files/python-apt_1.1.0~beta1build1.tar.xz https://launchpad.net/python-distutils-extra/trunk/2.39/+download/python-distutils-extra-2.39.tar.gz
Collecting f3a5fdd from https://launchpad.net/ubuntu/+archive/primary/+files/python-apt_1.1.0~beta1build1.tar.xz#egg=f3a5fdd
Installing collected packages: f3a5fdd
Exception:
Traceback (most recent call last):
File "/media/fgervais/core/.venv/lib/python3.5/site-packages/pip/_internal/basecommand.py", line 228, in main
status = self.run(options, args)
File "/media/fgervais/core/.venv/lib/python3.5/site-packages/pip/_internal/commands/install.py", line 335, in run
use_user_site=options.use_user_site,
File "/media/fgervais/core/.venv/lib/python3.5/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
**kwargs
File "/media/fgervais/core/.venv/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 748, in install
use_user_site=use_user_site, pycompile=pycompile,
File "/media/fgervais/core/.venv/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 961, in move_wheel_files
warn_script_location=warn_script_location,
File "/media/fgervais/core/.venv/lib/python3.5/site-packages/pip/_internal/wheel.py", line 316, in move_wheel_files
assert info_dir, "%s .dist-info directory not found" % req
AssertionError: f3a5fdd .dist-info directory not found
任何人都知道#egg = f3a5fdd来自哪里吗?
我认为这是导致此问题的原因,因为这可行:
pipenv shell
pip3 install https://launchpad.net/ubuntu/+archive/primary/+files/python-apt_1.1.0~beta1build1.tar.xz
但是如果我添加#egg = f3a5fdd,它将失败,并显示与pipenv相同的错误。