How to install python3 version of package via pip on Ubuntu?

前端 未结 17 1955
粉色の甜心
粉色の甜心 2020-11-22 11:03

I have both python2.7 and python3.2 installed in Ubuntu 12.04.
The symbolic link python links to python2.7

17条回答
  •  -上瘾入骨i
    2020-11-22 11:37

    1. You should install ALL dependencies:

      sudo apt-get install build-essential python3-dev python3-setuptools python3-numpy python3-scipy libatlas-dev libatlas3gf-base

    2. Install pip3(if you have installed, please look step 3):

      sudo apt-get install python3-pip

    3. Iinstall scikit-learn by pip3

      pip3 install -U scikit-learn

    4. Open your terminal and entry python3 environment, type import sklearn to check it.

    Gook Luck!

提交回复
热议问题