Python Error ''No module found: Rioxarray'' - python

I have installed rioxarray using anaconda command prompt with the following code:
conda install -c conda-forge rioxarray
However, whenever I import the package it gives me error as: Module not Found.
I am installing it by creating a new environment. Please help

Related

Not able to import deepgram-sdk

I'm new to deepgram-sdk library and have tried running the following command to install it
pip3 install deepgram-sdk
I even checked the libraries installed by typing: pip3 list
And I was able to see that deepgram-sdk 0.3.0 was installed but I am still not able to import it.
Please help
Error:
from deepgram import Deepgram
ModuleNotFoundError: No module named 'deepgram'

geopandas read_file function causes ImportError

I just got a new computer and after downloading the newest version of the anaconda distribution I tried to install geopandas and run my script.
However, the gpd.read_file command causes an ImportError.
I have been trying to reinstall everything but nothing changed.
Does anybody know how to figure this out?
import geopandas as gpd
path = "C:/someshapefile.shp"
gpd.read_file(path)
ImportError: The 'read_file' function requires the 'pyogrio' or
'fiona' package, but neither is installed or imports correctly.
Importing fiona resulted in:
DLL load failed while importing ogrext: The specified module could not be found.
Importing pyogrio resulted in:
No module named 'pyogrio'
Just installing fiona manually like this:
conda install -c conda-forge fiona
did unfortunately not work for me.
Thanks a lot!
CM
git issue comment
python -m pip install git+https://github.com/Toblerity/Fiona.git
working for me

Cannot import matplotlib on Spyder after conda installation

I installed matplotlib on Anaconda Prompt with conda install -c conda-forge matplotlib.
However, when I run import matplotlib.pyplot as plt on Spyder 4.1.5 (with Python 3.7), I got an error message:
ModuleNotFoundError: No module named 'matplotlib.pyplot'
Before getting this error message, I installed matplotlib_scalebar with conda install -c conda-forge matplotlib-scalebar. I had no issue importing matplotlib.pyplot before this, and I suspect that installing this might have caused the problem.
Under C:\ProgramData\Anaconda3\Lib\site-packages, I have folders with the following names:
matplotlib
matplotlib-3.0.2.dist-info
matplotlib-3.3.2.dist-info
I'm not sure if having different folders (3.0.2 and 3.3.2) is an issue here.
How can I fix this No module issue?

cannot import tensorflow - "Import Error: cannot import name 'self_check' "

I'm trying to use tensorflow-gpu. Using Anaconda, I installed the libraries and active both (tensorflow and tensorflow-gpu) I have also installed Keras in this anaconda environment as well
Next I launch Spider IDE within my Anaconda environment and run my py script, that is when I get the following error:
cannot import tensorflow - Import Error: cannot import name 'self_check'
I'm totally lost. Any recommendations?
Using Python 3.5
Thanks
pip install --upgrade tensorflow
or
you can uninstall the tensorflow and re-install it.

ImportError: PyUnicodeUCS4_AsUTF8String

I am installing Tensor Flow 0.11 in a virtual environment. After installing using this command
pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl
I get error on importing the library:
import tensorflow
ImportError: /lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: undefined symbol: PyUnicodeUCS4_AsUTF8String
Please tell how to resolve this. I have searched on the web and I got results relating to python using USC2 instead of USC4, but I could not resolve it.
Update: I installed miniconda and activated the conda enviroment. Then I carried on the installation of TensorFlow 0.11 in the conda environment and it successfully installed and gave no error on import tensorflow.

Categories