BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.06k stars 18.7k forks source link

The dependency target "pycaffe" of target "pytest" does not exist. #6971

Open bene1212 opened 3 years ago

bene1212 commented 3 years ago

I'm trying to setup caffe for Mac using anaconda. I followed the instruction https://medium.com/@buffaloal/build-caffe-with-anaconda-on-macos-1070a8d0a9fe exactly as described and so far fixed every error that occurred. However it seems like I can't fix the error when generating the Cmake and get this message:

CMake Error at CMakeLists.txt:107 (add_dependencies): The dependency target "pycaffe" of target "pytest" does not exist.

Since I found the following error messages as well, I think the solution Originally posted by @jgoenetxea could help, but I just don't know how to redirected all the paths (using CMake gui).

Could NOT find Boost: missing: python (found /usr/local/lib/cmake/Boost-1.73.0/BoostConfig.cmake (found suitable version "1.73.0", minimum required is "1.46")) Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

solution Originally posted by @jgoenetxea: In my case, I am using anaconda, and I have solved this issue defining the paths of glog, boost, gflags and python interpreter to the same conda environment.

I have created a new environment for caffe called "caffe", and I have installed glog, boost and gflags using the command "conda install [dependency name]".

I have redirected all the paths (using CMake gui) to the path "/home/user/anaconda3/envs/caffe/" instead of "/usr/local/" and "/usr/".

Good look."

Originally posted by @jgoenetxea in https://github.com/BVLC/caffe/issues/4802#issuecomment-321588438

Can anyone help me with a short but detailed step-by-step instruction?

Any help would be much appreciated.

Best Bene