anaconda 配置 yolov3 環境

1、 使用清華鏡像創建環境

輸入:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda create -n yolo python=3.6

(忽略圖中因爲打錯字母導致的報錯…)
在這裏插入圖片描述

2、進入yolo環境

輸入:

conda activate yolo

在這裏插入圖片描述

3、更換pip源下載

** 1、下載keras:**

# 不更換國內源的命令
# 超時失敗是常有的事
pip install keras==2.1.5 
# 更換國內源
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple keras==2.1.5
# pip install -i// + 鏈接 + //keras==2.1.5(keras的版本)

在這裏插入圖片描述
2、下載 tensorflow :

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==1.6.0

在這裏插入圖片描述

3、下載 Pillow

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple Pillow

在這裏插入圖片描述
4、安裝 matplotlib

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib

在這裏插入圖片描述
5、下載 ffmpeg

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ffmpeg

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --set show_channel_urls yes
conda install ffmpeg

在這裏插入圖片描述
6、安裝 opencv

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章