pip在osx上安装的“ .dist-info directory not found”软件包。

时间:2018-12-20 12:48:53

标签: python pip pypi miniconda

我遇到一个包装问题,我只能用两台苹果计算机(可能是OSX的Mac)进行复制。 这些计算机不是我的,并且我无法访问它们,但是它们是非常标准的(尽管使用miniconda),所以我认为问题将遍及所有OSX计算机。

我需要 bubbletools 软件包(还有许多其他软件包)要安装在这些计算机上,也就是同事的计算机上。我是程序包的维护者。

使用pip的安装过程失败,尤其是在他们的计算机上。它可以在我(和其他人)的GNU / linux上运行。

这里是简化的setup.cfg,其中包含所有包装指令(setup.py只是import&setup()):

[metadata]
name = bubbletools
version = attr: bubbletools.__version__
description = Tools around the bubble format
long_description = file: README.md
url = https://github.com/aluriak/bubble-tools

[options]
zip_safe = False
include_package_data = True
packages = bubbletools
install_requires =
    docopt>=0.6.2
    graphviz>=0.4.10
    networkx>=1.11
    pytest>=3.1.2

[zest.releaser]
create-wheel = no
python-file-with-version = bubbletools/__init__.py

我希望它能正确安装,因为我对所有软件包都使用了该模板。但是 bubbletools 是唯一会产生以下行为的工具。

$conda install bubbletools
Fetching package metadata .........

PackageNotFoundError: Package missing in current osx-64 channels:
  - bubbletools

$ pip --version
pip 18.1 from /Users/username/miniconda3/lib/python3.6/site-packages/pip (python 3.6)

$ pip install bubbletools
Collecting bubbletools
Installing collected packages: bubbletools
Exception:
Traceback (most recent call last):
  File "/Users/username/miniconda3/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/Users/username/miniconda3/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 366, in run
    use_user_site=options.use_user_site,
  File "/Users/username/miniconda3/lib/python3.6/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
    **kwargs
  File "/Users/username/miniconda3/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 760, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "/Users/username/miniconda3/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 382, in move_wheel_files
    warn_script_location=warn_script_location,
  File "/Users/username/miniconda3/lib/python3.6/site-packages/pip/_internal/wheel.py", line 326, in move_wheel_files
    assert info_dir, "%s .dist-info directory not found" % req
AssertionError: bubbletools .dist-info directory not found

有时,我还会观察到UNKNOWN软件包的显式安装(取代了bubbletools)(听起来有些杂乱,或者取决于我看不见的东西)。

以相同的过程安装了其他软件包,没有任何问题。

我的问题:

  • 我如何使安装适用于基于OSX / miniconda的系统?
  • 什么是UNKNOWN package

0 个答案:

没有答案
相关问题