caffe for both python 2 and 3

72 views
Skip to first unread message
Assigned to mih...@gmail.com by me

kyuhyoung choi

unread,
Jul 15, 2020, 10:48:59 PM7/15/20
to Caffe Users
Is there anyway to build Caffe for both python 2 and 3 at the same time.  
In case of OpenCV, it is possible to do that ( https://stackoverflow.com/questions/45694230/how-to-build-opencv-for-both-python-versions-2-and-3/51083542 )
If it is not possible for Caffe, why is that ?

Tamas Nemes

unread,
Jul 16, 2020, 10:03:19 AM7/16/20
to Caffe Users
Theoretically, it should be possible, even if I don't know why one should do that. Simply try it. You will most likely copy the master folder to have it twice (name them differently, e.g. caffe_python2 and caffe_python3) and build them separately, one with Python 2 and one with Python 3. One issue will be the Pythonpath, but first, you should get there.

lrak...@gmail.com

unread,
Nov 10, 2020, 5:00:01 AM11/10/20
to Caffe Users
Rakesh L
You can't build caffe for both python 2 and 3 at a time, it's give conflict while running, so make sure u can build one at a time.  You can chose a specific version of python in CMakelist.txt.


Go through the above link to build caffe
Reply all
Reply to author
Forward
0 new messages