paddlex 使用-8 Ubuntu下環境配置
阿新 • • 發佈:2020-11-27
環境使用18.04LTS
1、準備工作
設定加速cdn
cd /etc/apt sudo cp sources.list sources.list.bak sudo vim sources.list
刪除檔案內容再替換為以下內容,vim命令模式 GG dG可清空
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
sudo apt-get update
2、安裝python3.7,現在很簡單,直接自動安裝。自帶的沒有pip所以要從新安裝
sudo add-apt-repository ppa:jonathonf/python-3.7
sudo apt-get install python3.7
sudo apt install python3-pip
pip install Cython -i https://pypi.tuna.tsinghua.edu.cn/simple/
3、和之前一樣我這使用清華的加速穩定一些
pip install paddlex -i https://mirror.baidu.com/pypi/simple
#安裝時報錯skbuild執行下面這句話
pip install scikit-build
然後再執行下面這個,因為2.0.2無法自動安裝
pip install pycocotools==2.0.0
pip install numpy -i https://mirror.baidu.com/pypi/simple
4、然後就可以安裝paddlex成功了