简体   繁体   中英

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

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

I found a similar issue listed by Robert here for macOS Catalina,

Installing dependencies using

brew install boost-python3 gexiv2 pygobject3

Then downloading the py3exiv2 package and installing using

pip install py3exiv2-{version_number}.tar.gz

Works like a Charm on macOS Big Sur too!

The answer which was marked correct no longer worked for me in MacOS catalina. pip3 is not looking for the headers files in correct places. Check my answer here: 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.

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


 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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