ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • pip Options
    카테고리 없음 2019. 6. 12. 19:41

    : Install from the given requirements file. This option can be used multiple times.

    -c, --constraint

    : Constrain versions using the given constraints file. This option can be used multiple times.

    -

    -e, --editable <path/url>

    : Install a project in editable mode from a local project path or a VCS url.

    --user
    : Install to the Python user install directory for your platform. Typically ~/.local/, or %APPDATA%Python on Windows.

    --root

    : Install everything relative to this alternate root directory.

    -U, --upgrade

    : Upgrade all specified packages to the newest available version. The handling of dependencies depends on the upgrade-starategy used.


    github

     

    I try to install google assistant on raspberry PI 3 by this code
    $ python -m pip install google-assitant-sdk[sample]

    and then it is show

     

     

    Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/pyasn1/error.py'
    Consider using the--useroption or check the permissions.

     

     

    comment /

    You are trying to install the package to a system folder which you don't have permissions to write to. You have three options(use only one of them):

     

    1-setup a virtual env to install the package(Recommended):

    $python3 -m venv env

    source ./env/bin/activate

    python -m pip install google-assistant-sdk[samples]

     

    2-Install the package to the user folder:

    $python -m pip install --user google-assistent-sdk[samples]

     

    3-use sudo to install to the system folter (not recommended)

    $sudo python -m pip install google-assistant-sdk[samples]

    Link: https://github.com/googlesamples/assistant-sdk-python/issues/236

    댓글

Designed by Tistory.