tsutof / tiny_yolov2_onnx_cam

Tiny YOLO v2 Inference Application with NVIDIA TensorRT
45 stars 15 forks source link

python3 -m pip install -r requirements.txt fails #5

Closed KansaiTraining closed 4 years ago

KansaiTraining commented 4 years ago

I tried to do

python3 -m pip install -r requirements.txt but it failed in the third requirement

Collecting numpy>=1.15.1 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/40/de/0ea5092b8bfd2e3aa6fdbb2e499a9f9adf810992884d414defc1573dca3f/numpy-1.18.1.zip (5.4MB)
    100% |████████████████████████████████| 5.4MB 99kB/s 
Collecting onnx==1.4.1 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/59/09/61f817a530cd9b9bd0e289bc9cda46f662fcda4dc1bd687b36d45365e3ea/onnx-1.4.1.tar.gz (2.9MB)
    100% |████████████████████████████████| 2.9MB 181kB/s 
Collecting pycuda>=2017.1.1 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/5e/3f/5658c38579b41866ba21ee1b5020b8225cec86fe717e4b1c5c972de0a33c/pycuda-2019.1.2.tar.gz (1.6MB)
    100% |████████████████████████████████| 1.6MB 342kB/s 
    Complete output from command python setup.py egg_info:
    *************************************************************
    *** I have detected that you have not run configure.py.
    *************************************************************
    *** Additionally, no global config files were found.
    *** I will go ahead with the default configuration.
    *** In all likelihood, this will not work out.
    ***
    *** See README_SETUP.txt for more information.
    ***

So I tried what you wrote in your readme

pip3 install --user cython

and installed it without problems. So I tried again

>python3 -m pip install -r requirements.txt
Collecting numpy>=1.15.1 (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/40/de/0ea5092b8bfd2e3aa6fdbb2e499a9f9adf810992884d414defc1573dca3f/numpy-1.18.1.zip
Collecting onnx==1.4.1 (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/59/09/61f817a530cd9b9bd0e289bc9cda46f662fcda4dc1bd687b36d45365e3ea/onnx-1.4.1.tar.gz
Collecting pycuda>=2017.1.1 (from -r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/5e/3f/5658c38579b41866ba21ee1b5020b8225cec86fe717e4b1c5c972de0a33c/pycuda-2019.1.2.tar.gz

and it stops there.

I can see it is using cached values. What can I do to install the necessary requirements?

tsutof commented 4 years ago

@KansaiTraining Thank you for your contact. Did you have any error message on the pycuda installation? As far as I remember, the pycuda installation takes long time (about 30 min).

KansaiTraining commented 4 years ago

My apologies. In the end it finished but it really took a long time

tsutof commented 4 years ago

@KansaiTraining Thank you for your reply. What a relief!