caffe 安装找不到 python 3.5 即使它已安装并在路径变量中标记
caffe installation doesn't find python 3.5 even if it is installed and labeled in path variables
我已经安装了 python 3.5,当我在 cmd 中输入 python
时,它显示
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
但是当我尝试通过 运行 build_win.cmd
下载 caffe 时,它一直给我这个错误。我完全不知道如何调试它。有什么想法吗??
Selecting Windows SDK version to target Windows 10.0.16299.
-- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found C:/Program Files/Python36/python.exe)
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:40 (message):
Could not find url for MSVC version = 1900 and Python version = 1.4.
Call Stack (most recent call first):
CMakeLists.txt:77 (include)
另外,我不知道为什么它说 "(found C:/Program Files/Python36/python.exe)" 因为那个文件不存在。我删除了整个 Python36
文件夹。那么该声明如何显示?
我试过:
- 正在重新启动 cmd
- 正在重启计算机
- 重新下载 python 一共
Caffe 存储自己的缓存,并在其中保存文件位置。因此,即使删除了特定位置文件,缓存也会告诉安装程序它仍然存在。转到 caffe/scripts/build
并删除整个 CMakeFiles
文件夹。这将重置所有内容,下次您尝试安装 caffe 时,它将找到当前的 Python 文件夹。
我已经安装了 python 3.5,当我在 cmd 中输入 python
时,它显示
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
但是当我尝试通过 运行 build_win.cmd
下载 caffe 时,它一直给我这个错误。我完全不知道如何调试它。有什么想法吗??
Selecting Windows SDK version to target Windows 10.0.16299. -- Could NOT find PythonInterp: Found unsuitable version "1.4", but required is at least "2.7" (found C:/Program Files/Python36/python.exe) CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:40 (message): Could not find url for MSVC version = 1900 and Python version = 1.4. Call Stack (most recent call first): CMakeLists.txt:77 (include)
另外,我不知道为什么它说 "(found C:/Program Files/Python36/python.exe)" 因为那个文件不存在。我删除了整个 Python36
文件夹。那么该声明如何显示?
我试过:
- 正在重新启动 cmd
- 正在重启计算机
- 重新下载 python 一共
Caffe 存储自己的缓存,并在其中保存文件位置。因此,即使删除了特定位置文件,缓存也会告诉安装程序它仍然存在。转到 caffe/scripts/build
并删除整个 CMakeFiles
文件夹。这将重置所有内容,下次您尝试安装 caffe 时,它将找到当前的 Python 文件夹。