天天看點

ubuntu 報錯資訊和解決方法

·當在ununtu 子系統中安裝 pip (sudo apt-get install python3-pip) 時報錯:

    Reading package lists... Done

    uilding dependency tree       

    Reading state information... Done

    E: Unable to locate package ****

    解決:

    更新apt庫:

        sudo apt-get update

        sudo apt-get upgrade

·安裝cython 時報錯:

     WARNING: The scripts cygdb, cython and cythonize are installed in '/home/xiaowei/.local/bin' which is not on PATH.

  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

    解決:

    pip3 install --user cython

    或:

     sudo pip install Cython --install-option="--no-cython-compile"