更新额外包
$ conda update conda
更新pip
python -m pip install --upgrade pip
更新所有
conda update --all
安装ffmpeg
conda install ffmpeg
不存在该包,用anaconda search
[Anaconda2] C:Usersxwei>anaconda search -t conda ffmpeg
groakat/ffmpeg-dev | 2.4.3 | conda | linux-64, win-64,osx-64
[Anaconda2] C:Usersxwei>conda install -c https://conda.anaconda.org/groakat ffmpeg-dev
安装theano
[Anaconda2] C:UsersxweiDesktoplstm-test>
anaconda search -t conda theano
jaikumarm/theano | 0.8.2 | conda | linux-64, win-32, win-64, linux-32, osx-64 : Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs.
[Anaconda2] C:UsersxweiDesktoplstm-test>
conda install -c https://conda.anaconda.org/jaikumarm theano
[Anaconda2] C:UsersxweiDesktoplstm-test>python lstm.py
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded. To remove this warning, set Theano flags cxx to an empty string.
- [Anaconda2] C:Usersxwei> conda install mingw libpython
- 之后即可以在anaconda Prompt 里面直接调用theano ,包括g++
- 运行LSTM Networks for Sentiment Analysis 明显快了很多很多,直接在cpu下运行纯python代码,一两分钟才出来第一次迭代, 安装之后,运行c代码的时候,基本上两三秒一次迭代。
安装出现Anaconda Python installation error
解决参考stackoverflow
First, open a DOS prompt and admin rights. Then, go to your Anaconda2Scripts folder.
conda update conda
and allow all updates. One of the updates should be menuinst.
Then, change to the Anaconda2Lib directory, and type in the following command:
..python _nsis.py mkmenus
Wait for this to complete, then check your Start menu for the new shortcuts.