Cannot install via pip

Asked by Jo

Hi,

I tried to install the package via pip on Python 3.9.9 on an M1 mac and got this error:

```
pip install py3exiv2
Collecting py3exiv2
  Using cached py3exiv2-0.9.3.tar.gz (36 kB)
  Preparing metadata (setup.py) ... done
ERROR: No .egg-info directory found in /private/var/folders/px/tgx1c_sx07bb2hf5zmpb0z9c0000gn/T/pip-pip-egg-info-rapyta5b
```

Is there anything I could do to install the package?

Bye,
Jo

Question information

Language:
English Edit question
Status:
Answered
For:
py3exiv2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaideep Padhye (jaideepp) said :
#1

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

Revision history for this message
reagle (joseph.reagle) said :
#2

❯ pip install py3exiv2
Collecting py3exiv2
  Using cached py3exiv2-0.11.0.tar.gz (36 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/tmpgccxd6p0/output.json'

Can you help with this problem?

Provide an answer of your own, or ask Jo for more information if necessary.

To post a message you must log in.