Unable to install np_utils using conda - python

While installing 'np_utils' through conda, using the below command:
conda install -c auto np_utils
The below error appears:
RemoveError: 'pyopenssl' is a dependency of conda and cannot be removed from conda's operating environment.
RemoveError: 'setuptools' is a dependency of conda and cannot be removed from conda's operating environment.
Also tried installing 'setuptools' and 'pyopenssl' using conda, which results in the same error.
Moreover, 'setuptools' and 'pyopenssl' does not exist, which has been observed by using conda list.

You can try this before the installation
conda update --force conda

Try running Anaconda Prompt as an Administrator, then run this:
conda install -c conda-forge np_utils
It worked for me.
Here is the source: https://anaconda.org/conda-forge/np_utils

Related

Anaconda does not recognize: xgboost, catboost and lightgbm

So I have already installed all these packages.
But I cannot import them. Anaconda gives me the error: "No module named..."
# conda install -c conda-forge xgboost
import xgboost
# conda install -c conda-forge catboost
import catboost
# conda install -c conda-forge lightgbm
import lightgbm as lgb
I have looked all over the internet, no solutions work. I cannot import the packages.
Try create its own environment:
conda create -n boost python=3.6
Then activate it and install your packages there:
conda activate boost
conda install -c conda-forge spyder xgboost catboost lightgbm
In the environment type:
spyder
And happy coding
(Spyder maintainer here) To solve this problem you need to:
Create a conda env to install all packages that come from conda-forge. That's because conda-forge packages are binary incompatible with the default packages provided by Anaconda.
Read our guide to understand how to connect Spyder to different Python environments.

I get the following error whenever I try to run conda install tensorflow

This is the error :
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- numba -> numpy[version='>=1.14,<1.15.0a0']
- tensorflow
Use "conda info " to see the dependencies for each package.
You have to run the conda info tensorflow and conda info numba to see each dependencies for each package and then you have to install those package like conda install package=version to fix the problem.
First create a conda environment if you would like using
conda create -n my_env python=3.6
Here "my_env" is the name of my environment
Then activate your environment using
source activate my_env #(for mac)
conda activate my_env #(for windows)
Once the Environment is active. you can now install the packages you need as follows:I am showing you the packages which i work upon on virtual environment and this will take care of most of your dependencies
conda update conda
conda upgrade conda
conda upgrade anaconda
conda update numpy
conda install tensorflow
Hope this will solve your problem or else try to upgrade numpy using pip:
pip install --upgrade numpy

how conda instal pip (Theano) on ubuntu?

I try to install theano use conda install pip theano but always failed.
and I try to install using sudo, but when I try to import no module named theano.
you either use:
conda install theano
or
pip install theano
conda and pip are two distinct installers that you need to have on your machine first; pip comes with python; conda is a separate tool, usually installed with an anaconda distribution
To check if you have conda installed, type which conda in your terminal.
to update conda, type conda update conda

Installing Keras package with conda install

I have installed Anaconda package on a server as a user account, then I installed keras by conda install keras,but after installation, when I run import keras, it raised no module names keras,anyone can help? thanks very much!
One solution could be creating a conda environment:
conda create -n keras python=3.5
Now activate it:
conda activate keras
and install keras:
(keras)$ conda install keras
Try if it works:
(keras)$ python
>>> import keras
Once creating the Conda environment, use the command below to list available environment:
conda info -e
Once activate your conda environment, you can try to install Keras by
pip install keras==version_your_desired.
Then use
pip freeze
to check the version.

How to install PyTables 2.3.1 with Anaconda, missing HDF5 library

I need to run an older verion of PyTables, that is 2.3.1, in and Anaconda environment on Linux. But I cannot install it.
conda install -n myenv pytables=2.3.1
fails finding the appropriate version.
conda install -n myenv pytables=2
installs PyTables 2.4.0 successfully. But I need 2.3.1.
Also activating the environment and installing via pip does not work.
pip install tables==2.3.1
fails with the following error:
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the HDF5_DIR environment
variable or by using the --hdf5 command-line option.
Where can I find the HDF5 installation of Anaconda? And how do I pass the --hdf5 option to pip? I already tried
pip install tables==2.3.1 --install-option="--hdf5=/home/me/Programme/anaconda"
But it also fails with the same error as above.
You can try
env HDF5_DIR="/home/me/Programme/anaconda" pip install tables==2.3.1
It worked for me.
I was trying to install a completely different package with pip on a new conda environment when I got the same error.
conda install -c conda-forge pytables
This helped me to get rid of the error and successfully install the package.

Categories