hebpipe library incompatible with colab - python

missing modules lib and crfutils.
I am trying to write some nlp using hebpipe library in colab.
After using !pip install hebpipe i get the message that it was indeed successfully installed and even checked if it was indeed installed using: !pip list -v .
the problem is when trying to import the library it seems to be missing the dependancy:
ModuleNotFoundError: No module named 'hebpipe.lib.crfutils'
as well as:
No module named 'lib'
does anyone know a way to fix this? or should i just try a different environment?

Related

Python package has been already installed but gets No module error while importing

I installed the fastatocsv successfully after running the following command on Colab:
!pip install fastatocsv
But when I want to import the module, I get this error:
ModuleNotFoundError: No module named 'fastatocsv'
Does someone know anything about what could possibly be happening here?
It seems the README-EXAMPLE was never updated
try
import fasta2csv

No module named 'tensorflow' with GCP

When trying to execute a gcloud ai-platform local train command with python 3.7 files, I get an error like:
No module named 'tensorflow'
This can happen also with numpy, even though both of these libraries are correctly installed. Is there a different installation path for libraries in Google Cloud? I am actually a newbie with GCP and I have no idea of what may be causing this problem. I am working on a Mac and Google SDK is, I guess, correctly installed.
Thanks
error
Naming conventions of packages and modules are expected to be lowercase.
import tensorflow as tf
I suspect the same issue arises with numpy - where you are incorrectly writing import TensorFlow or import Numpy
There is an environment variable named CLOUDSDK_PYTHON that must be set to "python3.x".
My error was caused by GCP using python2, and so not recognizing certain packages.

ModuleNotFoundError: No module named 'google‘ when requesting paramaterized query

I’ve been running into the same error code when trying to use Python 3.7 to query data from BigQuery. I have enabled the API and also followed instructions on which client libraries to download using the terminal on my MacOS.
I’m not sure what the issue is but each time I try to input the code from google.cloud import bigquery, it returns this error:
ModuleNotFoundError: No module named 'google‘
I am very new to these environments, including python and am not familiar with setting up $PATH for running my parameterized query. A sample of what I’m trying to run could be found here: https://github.com/googleapis/python-bigquery/blob/35627d145a41d57768f19d4392ef235928e00f72/samples/client_query_w_named_params.py
Any help on this would be greatly appreciated. Thank you!
Try install the package again with :
python3 -m pip install --upgrade google-cloud-bigquery
you might want to use python instead of python3, depending on your setup
Had the same error as your, this worked on MacOS
p.s: cannot post to comment due to insufficient reputation
See also: ImportError: No module named google.cloud

probleme of SLIM package in google Colab

please, I want to use the Sparse LInear Method (SLIM) package in my project, firstly I installed the package by this command:
pip install SLIM
when I execute my script I have this error:
ModuleNotFoundError: No module named 'SLIM'
how can I resolve this problem? and thank you
try that:
import slim
and not:
import SLIM
don't forget Python is case sensitive

Module importation error on Python 3.8.3; No module named 'tensorflow_docs'

I have been trying for fews days to follow this deep learning tutorial, https://www.tensorflow.org/tutorials/keras/regression
But I can't find a way to import tensorflow_docs, I did try this
https://stackoverflow.com/questions/55535518/modulenotfounderror-no-module-named-tensorflow-docs-when-creating-tensorflow
pip install git+https://github.com/tensorflow/docs
But I still get this error
ModuleNotFoundError: No module named 'tensorflow_docs'
I am running Python 3.8.3, through Pycharm.
Thank for your help.
tensorflow_docs was indeed in my computer but python was not looking at the directory,
I simply add
import sys sys.path.append("C:/users/xxxx/appdata/local/programs/python/python38/lib/site-packages")

Categories