Download and install Python 2.7.11 64bit from Python‘s official site (https://www.python.org/ftp/python/2.7.11/python-2.7.11.amd64.msi). Please select Add Python Path during installation.
Download numpy, scipy, matplotlib, scikit-image, h5py from Unofficial Windows Binaries for Python Extension Packages webpage at (~gohlke/pythonlibs/). Remember to download correct version (2.7) and architecture (64-bit).
Additionally, download gevent v1.0.2 at the same site. Run command prompt (cmd.exe) as administrator, and issue the following commands.
python -m pip install cython python -m pip install numpy-1.11.0+mkl-cp27-cp27m-win_amd64.whl python -m pip install scipy-0.17.0-cp27-none-win_amd64.whl python -m pip install matplotlib-1.5.1-cp27-none-win_amd64.whl python -m pip install scikit_image-0.12.3-cp27-cp27m-win_amd64.whl python -m pip install h5py-2.6.0-cp27-cp27m-win_amd64.whlIf the installation process complains compiler not found, you need to install Microsoft Visual C++ Compiler for Python 2.7, downloaded at (https://www.microsoft.com/en-us/download/details.aspx?id=44266). We recommend installing it by
msiexec /i VCForPython27.msi ALLUSERS=1After that compiler is installed, finish the above python -m pip install commands.
At this moment, do not install gevent yet. We need to install it after installing DIGITS.
CUDA 7.5CUDA 7.5 can be obtained at NVIDIA CUDA (https://developer.nvidia.com/cuda-downloads). Please select Windows 7 to download.
CuDNN 5.1Download CuDNN 5.1 at NVIDIA website (https://developer.nvidia.com/cudnn). Please select CuDNN 5.1 for CUDA 7.5.
CaffeCaffe can be obtained at (https://github.com/bvlc/caffe/tree/windows). Note you need to install Visual Studio 2013 to build Caffe. Before building it, enable Python support, CUDA and CuDNN by following instructions on the same page. Because we are using Official CPython, please change the value of PythonDir tag from C:\Miniconda2\ to C:\PYTHON27\ (assume your CPython installation is the default C:\PYTHON27). After building it, configure your Python environment to include pycaffe, which is described at (). Your caffe.exe will be inside Build\x64\Release directory (if you made release build).
GraphvizGraphviz is available at (). Please note this site is not always available online. The installation directory can not contain space, so don‘t install it under the regular ‘c:\Program Files (x86)‘ directory. Try something like ‘c:\graphviz‘ instead. When the installation directory contains space, pydot could not launch the dot.exe file, even it has no problem finding it. Add the c:\graphviz\bin directory to your PATH.
Installing DIGITSClone DIGITS from github.com (https://github.com/nvidia/digits). From the command prompt (run as administrator) and cd to DIGITS directory. Then type
python -m pip install -r requirements.txtYou may see error about Pillow, like ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting If this happens, download Pillow Windows Installer (Pillow-3.1.1.win-amd64-py2.7.exe) at https://pypi.python.org/pypi/Pillow/3.1.1 and run the exectuables. After installing Pillow in the above way, run
python -m pip install -r requirements.txtagain.
After the above command, check if all required Python dependencies are met by comparing requirements.txt and output of the following command.
python -m pip listIf gevent is not v1.0.2, install it from the whl file, downloaded previously from (~gohlke/pythonlibs/).
python -m pip install gevent-1.0.2-cp27-none-win_amd64.whlIt should uninstall the gevent you had, and install gevent 1.0.2.
Because readline is not available in Windows, you need to install one additional Python package.
python -m pip install pyreadline Running DIGITSFirst, check if caffe executable is included in your PATH environment variable. If not, add it.
set PATH=%PATH%;MY_CAFFE_ROOT\Build\x64\ReleaseReplace MY_CAFFE_ROOT with your local caffe directory.
Launch DIGITS devserver with the following command:
python -m digitsPoint your browser to localhost:5000. You should be able to see DIGITS.
TroubleshootingNo module named wtforms
pip install wtforms
Invalid version: ‘CAFFE_VERSION‘
windows/caffe/caffe.vcxproj <PostBuildEvent> <Command>"$(ScriptsDir)\FixGFlagsNaming.cmd" "$(OutDir)" $(Configuration)</Command> </PostBuildEvent> + <ClCompile> + <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions);CAFFE_VERSION=1.0.0-rc3</PreprocessorDefinitions> + </ClCompile> </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="..\..\tools\caffe.cpp" /> windows/pycaffe/pycaffe.vcxproj <ItemDefinitionGroup> <ClCompile> <DisableSpecificWarnings>4003</DisableSpecificWarnings> + <PreprocessorDefinitions Condition="‘$(Configuration)|$(Platform)‘==‘Release|x64‘">NDEBUG;%(PreprocessorDefinitions);CAFFE_VERSION=1.0.0-rc3</PreprocessorDefinitions> </ClCompile> <PreBuildEvent> <Command>"$(ScriptsDir)\PythonPreBuild.cmd" "$(SolutionDir)" "$(ProtocDir)" "$(OutDir)"</Command>
No module named flask.ext.socketio
pip install flask-socketio
pip install -I Flask==0.10.1
No module named lmdb
pip install lmdb
最后 python -m digits 启动
打开浏览器输入: localhost:5000就可以看到
,