简体   繁体   English

在 macOS Big Sur 上安装 py3exiv2 失败 | 错误:在中找到 No.egg-info 目录

[英]Installation of py3exiv2 on macOS Big Sur fails | ERROR: No .egg-info directory found in

I'm trying to install py3exiv2 on macOS Big Sur with我正在尝试在 macOS Big Sur 上安装 py3exiv2

pip install py3exiv2

and

pip3 install py3exiv2

both of which yield两者都产生

ERROR: No .egg-info directory found in/private/var/folders/gf/g7tsgb6x4l9gyms1jm5kmlsc0000gn/T/pip-pip-egg-info-__dllgi9

Are there any workarounds for this issue?有没有解决这个问题的方法?

I already have pyexiv2, exiv2 and boost.python running on Python 3.7.0我已经在 Python 3.7.0 上运行了 pyexiv2、exiv2 和 boost.python

I found a similar issue listed by Robert here for macOS Catalina,我发现罗伯特在这里为 macOS Catalina 列出了一个类似的问题,

Installing dependencies using使用安装依赖项

brew install boost-python3 gexiv2 pygobject3

Then downloading the py3exiv2 package and installing using然后下载py3exiv2 package并使用安装

pip install py3exiv2-{version_number}.tar.gz

Works like a Charm on macOS Big Sur too!在 macOS Big Sur 上也能像 Charm 一样工作!

The answer which was marked correct no longer worked for me in MacOS catalina.在 MacOS catalina 中,标记为正确的答案不再适用于我。 pip3 is not looking for the headers files in correct places. pip3 没有在正确的位置寻找头文件。 Check my answer here: https://answers.launchpad.net/py3exiv2/+question/700064在这里查看我的答案: https://answers.launchpad.net/py3exiv2/+question/700064

This is what fixed it for me:这就是为我解决的问题:

To get around this problem do the following:要解决此问题,请执行以下操作:

brew install boost-python3 gexiv2 pygobject3

After installing the dependencies, you'll face more errors.安装依赖项后,您将面临更多错误。 To get around those, set the corrext include and linker path and then install the module using pip.要解决这些问题,请设置正确的包含和 linker 路径,然后使用 pip 安装模块。

export CPLUS_INCLUDE_PATH=/usr/local/Cellar/exiv2/0.27.5_1/include/:/usr/local/opt/libssh/include/:/usr/local/Cellar/boost/1.76.0/include/
export LDFLAGS="-L/usr/local/Cellar/boost-python3/1.76.0/lib -L/usr/local/Cellar/exiv2/0.27.5_1/lib"

 pip install py3exiv2

or if you are using pipenv或者如果您使用的是 pipenv


 CPLUS_INCLUDE_PATH=/usr/local/Cellar/exiv2/0.27.5_1/include/:/usr/local/opt/libssh/include/:/usr/local/Cellar/boost/1.76.0/include/ LDFLAGS="-L/usr/local/Cellar/boost-python3/1.76.0/lib -L/usr/local/Cellar/exiv2/0.27.5_1/lib" pipenv install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM