'cant install a package in anaconda

While installing a package iam getting this error.Whats the problem??

    Installing collected packages: opencv-contrib-python
    Could not install packages due to an EnvironmentError: [Errno 13] Permission den
    ied: 'c:\\users\\anesh_000\\anaconda3\\envs\\tensorflow\\Lib\\site-packages\\cv2
    \\cv2.cp35-win_amd64.pyd'
    Consider using the `--user` option or check the permissions.


Solution 1:[1]

You may try installing with pip and install using super user command as below:

sudo -H pip install opencv-conrib-python

Basically in your case what is happening is that the directory where all anaconda packages are installed, there your user doesn't have write or executable permissions, which you can give and then may try installing package with anaconda.

Solution 2:[2]

You should consider providing more detail i.e. installation command and package name.

Nevertheless, use "Anaconda Prompt" shell and type following command to install package:

conda install package_name

Alternately, you can pass environment argument i.e.

conda install --name myenv scipy

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abhisek Rana
Solution 2 DataFramed