以下采用的語句都是本人在安裝時用到的,根據每個人的不同會不一樣,比如python版本等。
由于數據集的問題,換了github上的ssd另一種源碼版本,于是重新搭了環境。
1.anaconda的安裝參照https://www.continuum.io/downloads/進行安裝。
例如本人的安裝命令為: bash Anaconda2-4.3.0-linux-x86_64.sh
2.安裝jupyter
更新: conda update anaconda
安裝: conda install jupyter
3.安裝tensorflow
創建tensorflow環境: conda create -n tensorflow python=2.7
激活環境: source activate tensorflow
安裝tensorflow: pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.0.0-cp27-none-linux_x86_64.whl
4.安裝opencv
從激活環境開始,這些步驟中的命令都在tensorflow環境下,直到最后退出環境。
在這之前還添加了清華源,不知道有沒有用: conda config --add channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'
安裝opencv3: conda install -c menpo opencv3=3.2.0
5跑源碼過程中出現了問題,還是沒有tensorflow和cv2采用以下句子。
安裝ipython: conda install ipython
安裝jupyter: conda install jupyter
重新安裝jupyter的原因是在tensorflow環境下和不在tensorflow環境下,兩者是不一樣的安裝路徑的,對于使用有影響。
6別的問題
安裝matplotlib: conda install matplotlib
安裝Pillow: conda install Pillow
7關閉環境: source deactivate tensorflow
新聞熱點
疑難解答