Trouble installing 'easydict' package from conda prompt - python

I am trying to install easydict package from conda prompt using following command
conda install easydict
But I am getting the following error
PackageNotFoundError: Packages missing in current channels:
easydict
We have searched for the packages in the following channels:
...
I am using Anaconda Navigator 1.6.4

easydict is a module which is currently not offered through the default standard conda channel. Instead, you can use e.g. the conda-forge channel:
conda install easydict -c conda-forge
The auto channel recommended in the post above has the disadvantage that it will potentially affect many other packages, most importantly downgrading python3 to python2.7

Related

Conda doesn't find package geowombat

The package geowombat appears to be available via conda-forge on all platforms.
However, running
conda install -c conda-forge geowombat
Results in
PackagesNotFoundError: The following packages are not available from current channels:
- geowombat
I am on an M1 mac with Python 3.9 and conda version 22.9.0.
What can I do to install geowomba through conda?

how to install multiple packages in one line using conda?

I need to install below multiple packages using conda. I am not sure what is conda-forge? some uses conda-forge, some doesn't use it. Is it possible to install them in one line without installing them one by one? Thanks
conda install -c conda-forge dash-daq
conda install -c conda-forge dash-core-components
conda install -c conda-forge dash-html-components
conda install -c conda-forge dash-bootstrap-components
conda install -c conda-forge dash-table
conda install -c plotly jupyter-dash
I believe you can just list them all one after the other:
conda install -c conda-forge dash-daq dash-core-components
Why some packages have to be installed through conda forge:
Conda official repository only feature a few verified packages. A vast portion of python packages that are otherwise available through pip are installed through community led channel called conda-forge. You can visit their site to learn more about it.
How to install multiple packages in a single line?
The recommended way to install multiple packages is to create a .yml file and feed conda this. You can specify the version number for each package as well.
The following example file can be fed to conda through conda install --file:
appdirs=1.4.3
asn1crypto=0.24.0
...
zope=1.0
zope.interface=4.5.0
To specify different channel for each package in this environment.yml file, you can use the :: syntax.
dependencies:
- python=3.6
- bagit
- conda-forge::beautifulsoup4

downgrade sklearn 0.22.3 to 0.22.2 in anaconda prompt?

When I run in jupyter file
import sklearn
print(sklearn.__version__)
The result is 0.23.2
However I would like to install 0.22.2. Therefore I put into prompt
conda remove scikit-learn
and install:
conda install scikit-learn=0.22.2
unfortunately there is this error:
PackagesNotFoundError: The following packages are not available from current channels: scikit-learn=0.22.2
How can I delete sklearn version 0.23.2 and install 0.22.2?
You should try adding the conda-forge channel to your list of channels when you search for packages.
This should work:
RUN
conda config --append channels conda-forge
and
conda install scikit-learn=0.22.2
OR
RUN
conda install -c conda-forge scikit-learn=0.22.2
instead of 2 above commands

How to install boruta in python using conda install

I'm using python 3.6 on windows 10. I want to install boruta in my python.
So I used following command conda install -c conda-forge r-boruta but got error message
PackagesNotFoundError: The following packages are not available from current channels:
I also tried conda install boruta but got the same error message. Can you suggest me installation steps
As per official documentation of anaconda https://anaconda.org/saravji/boruta if you want to install boruta using conda install use conda install -c saravji boruta or conda install -c conda-forge boruta_py and make sure that your python version is less than equal to 3.6.
Try this:
conda config --add channels conda-forge
conda install r-boruta
Source: https://github.com/conda-forge/r-boruta-feedstock

Why can't conda find pip installed module in prefix (within conda evironment)

I used pip to install the Resource module to the default conda environment on my laptop: (C:\Users\my_username\Anaconda2). I think it is called root. I installed pip to the conda environment and so I'm 90% sure the resource was installed within the environment. And indeed running conda list shows that the package is listed within the environment. Here is a section of the output:
# packages in environment at C:\Users\conna\Anaconda2:
#
qtpy 1.2.1 py27_0
requests 2.14.2 py27_0
Resource 0.2.0 <pip>
rope 0.9.4 py27_1
ruamel_yaml 0.11.14 py27_1
scandir 1.5 py27_0
scikit-image 0.13.0 np112py27_0
However when I run
conda update Resource
I get the following error:
PackageNotInstalledError: Package is not installed in prefix.
prefix: C:\Users\conna\Anaconda2
package name: Resource
How is it possible that conda list shows the module is present but conda update can't see them? I also noticed that conda update doesn't recognize any packages with <pip>. What is happening?
conda only manages the packages that are installed using a conda command. If you installed a package with pip (or using python setup.py install or develop) it will show up with conda list (because that shows all packages no matter how they were installed) but conda won't manage that package. Simply because it doesn't know how!
So if you installed a package with pip you also need to upgrade/update it with pip:
pip install [package_name] --upgrade
Try this;
pip install Resource --upgrade

Categories

Resources