更新额外包
$ conda update conda
更新pip
python -m pip install --upgrade pip
更新所有
conda update --all
安装ffmpeg
conda install ffmpeg
不存在该包,用anaconda search
[Anaconda2] C:\Users\xwei>anaconda search -t conda ffmpeg
groakat/ffmpeg-dev | 2.4.3 | conda | linux-64, win-64,osx-64
[Anaconda2] C:\Users\xwei>conda install -c https://conda.anaconda.org/groakat ffmpeg-dev
安装theano
[Anaconda2] C:\Users\xwei\Desktop\lstm-test>
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:\Users\xwei\Desktop\lstm-test>
[Anaconda2] C:\Users\xwei\Desktop\lstm-test>python lstm.py
- [Anaconda2] C:\Users\xwei> 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 Anaconda2\Scripts folder.
and allow all updates. One of the updates should be menuinst.
Then, change to the Anaconda2\Lib directory, and type in the following command:
Wait for this to complete, then check your Start menu for the new shortcuts.