[SOLUTION] ERROR: Cannot install -r requirements.txt and numpy==1.23.5 because these package versions have conflicting dependencies. #501
Closed
J-Broadway
started this conversation in
General
Replies: 1 comment
-
it really did help me, thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Was running into a number of issues getting deep live cam installed on my Geforce RTX 2060, Windows 10 machine. I have resolved the issues and wanted to make a quick post on how I solved them. EDIT: After seeing this thread, I may have been experiencing errors since I got it running with
Python 3.11.2
.Here was the full error (for SEO purposes)
I also ran into this Numpy error
To solve the issue I made to sure to use a virtual environment
venv
and installed each package in requirements.txt one by one as shown:Next I installed the CUDA enabled version of pytorch
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Here's a command to check if CUDA is available. Make sure you're running all these commands in your virtual environment.
python -c "import torch; print(torch.__version__); print(torch.cuda.is_available())"
Should return something like:
If yours says
2.0.1+cpu
it means that PyTorch is installed with CPU support onlyAfter installing torch is when I started getting the Numpy error. I solved it by rolling back Numpy a version.
python -m pip install "numpy<2"
Though after that, chatGPT recommended to re-build
onnxruntime
so I did:After that I was successfully able to run:
python run.py --execution-provider cuda
Hope this is helpful to anyone.
Beta Was this translation helpful? Give feedback.
All reactions