New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I make build_win.cmd point to python 3.5 rather than python 2.7? #6541
Comments
More details of my issue are in this link: https://stackoverflow.com/questions/52358784/why-do-i-keep-seeing-could-not-find-pythonlibs-missing-python-libraries-py |
Have you tried to use |
Do you mean like this:
? |
When I do that I get errors about missing libraries (glog being one of them):
|
When I run the cmake command from the command prompt, I get errors about missing libraries and when I run the command |
The script has started working properly after I included the line |
Closing as resolved. |
@a52siddi what file is it that you included line |
@bit-scientist I included that line in the file |
Hello @a52siddi . I got the same error while executing scripts\build_win.cmd. Tried to include -DPYTHON_EXECUTABLE=<your python 3.5 path>in the build file but it says, "syntax of the command is incorrect" when i tried to run scripts\build_win.cmd. caffe> scripts/build_win.cmd I tried to remove it and execute scripts\build_win.cmd and again stuck with the previous error |
Hello @Aishwaryabaskaran. I cannot confidently say why you are seeing this error until I see how you are typing
This is probably happening because you are not calling this command from the correct folder. You either don't know the directory structure of your project folder or you don't fully understand how command line arguments for windows and linux work. You should first know whether you have a windows system or a linux system. You can then learn about the command line argument styles suitable for your system as they are NOT the same for all types of systems. I advise you to learn about file paths (absolute and relative paths) from these web resources: (https://www.geeksforgeeks.org/absolute-relative-pathnames-unix/) and (https://en.wikipedia.org/wiki/Path_(computing)). To test your understanding of this concept, you can then create a folder with other sub-folders in it and try to access these folders (enter into them and exit them) from the command line. |
I can access python 3.5 from the command line:
I followed all the steps in this link (https://github.com/BVLC/caffe/tree/windows) and set up build_win.cmd in the following way:
It gives me the following output:
I am really confused about this line:
-- Found PythonInterp: C:/cygwin64/bin/python2.7.exe (found suitable version "2.7.14", minimum required is "2.7")
Why is it detecting python2.7 when the script should be seeing python 3.5? Please help me.
The text was updated successfully, but these errors were encountered: