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
Related
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?
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
I installed GraphQl on Windows 10 Laptop using the below command:
pip install --pre gql[all]
I tried using the Basic example available on Official Github Page. in my Python IDLE.
However, I am getting this ImportError in my IDLE.
ImportError: cannot import name 'gql' from 'gql'
Kindly help in resolving the issue.
Thanks
make sure the name of your file you're testing with isn't named something similar to a package you're importing. Just got me when I named my file ariadne.py
https://github.com/mirumee/ariadne/issues/400#issue-662473441
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")
I'm trying to use (and therefore install) an optimization package called mosek and more specifically to use it with python on a jupyter notebook.
It's a commercial package but since I'm working in academia, I have a free license.
This issue has been edited thanks to Paul insights.
My goal is to be able to use mosek in python 3.5 through jupyter.
1° My issue:
When I run the following line of code in jupyter notebook :
import mosek.fusion
I have the following error:
import mosek.fusion ---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-9-81543b63d59f> in <module>()
----> 1 import mosek.fusion
ImportError: No module named 'mosek.fusion'
2° What I did :
I first downloaded and installed mosek. I also added my licence in my folder mosek. (I did all the steps described here : http://docs.mosek.com/7.1/toolsinstall/Linux_UNIX_installation_instructions.html and added my academical license as well).
I then tried to run the line of code:
import mosek.fusion which gave an error.
I then tried to run:
import mosek
then I had no error. My conclusion is that mosek is (now, thanks to Paul), properly installed but that fusion module is missing.
I also search for any fusion file or folder in my mosek folder. I did not find any.
Is there a way to get this module fusion from mosek, and even better, is there a way to make it work?
Thank you all!
E.
I believe that it installed it to your .local because you installed with the --user flag. In other words:
python setup.py install --user
Trying running the install without the --user flag. That should install it in your conda environment.
But I'm not sure that is your import problem. Perhaps the fusion module doesn't exist. Try ls-ing what is in this folder /home/edwin/.local/lib/python3.5/site-packages/mosek/. Maybe try from mosek import fusion.
Fusion is not yet available for Python3. It will in the next major release, i.e. MOSEK 8.
The easiest way to install Mosek (for using from Python) is to use the pip installer:
pip install git+http://github.com/MOSEK/Mosek.pip#v7.0.0#egg=mosek
You may also want to set the environement variable for the Mosek lisence explicitly, e.g.
os.environ.setdefault("MOSEKLM_LICENSE_FILE", license) where license is a server address or a file location.
However, Mosek Fusion is not yet available for Python 3
Keep on the MOSEK website. Version 8(beta) soon to be released will support Python 3.5. Also full Anaconda support will soon be available.