Open NicholasDunham opened 2 years ago
Hey @NicholasDunham, I have an M1 MacBook and could not reproduce this behaviour. I just ran the following few lines successfully:
conda create -n venv-book python=3.9
conda activate venv-book
pip install -r requirements.txt
This seems to have set up all requirements successfully. Can you try this again? Perhaps your python=3
refers to an older python version that finds no matching distribution for torch==1.9.0
but I am not sure.
@violenil It seems to be the opposite problem: using python=3
installs Python 3.10, which doesn't find a match for torch==1.9.0
. Specifying python=3.9
does install Torch 1.9.
However, that still leaves the second problem. I've been trying the solutions suggested by @makram93, but so far haven't been able to make it work. I probably can if I keep trying, but if readers run into the same problems I'm having I'm guessing they'll give up pretty quickly.
@violenil It seems to be the opposite problem: using python=3 installs Python 3.10, which doesn't find a match for torch==1.9.0. Specifying python=3.9 does install Torch 1.9.
What is meant with python=3
very much depends on your system. In one year from now it will then mean python3.11
. Please pin it to 3.9.
Getting the following error when attempting to follow the instructions in Chapter 7's cross-modal-search example:
I'm using MacOS Monterey on an M2 MacBook Pro.
Steps to reproduce:
conda create -n demo python=3
conda activate demo
pip install -r requirements.txt
I was able to fix this by changing the torch line in
requirements.txt
totorch==1.12
. However, I then ran into another problem: when installing pyqt5, pip stopped with the following error:I then installed qt5 via Homebrew (
brew install qt5
) and linked it so that qmake was in the path (brew link qt5 --force
).Now when I run
pip install -r requirements.txt
it hangs for a long time on the pyqt5 step, but instead of giving me an error it just kills the process after a while:I haven't found the time yet to figure this out—it's probably caused by an incompatibility with my MacBook's Apple silicon. Regardless, if I'm having these issues, some readers will have them as well.