Team,
I installed python 3.4.1 version along with Anaconda. I am installed TextBlob, but it showing me error as,
ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 import textBlob
ModuleNotFoundError: No module named 'textBlob'
Help appreciated for this !!
Related
so i'm working on a project in jupyter and have encountered a problem with the scikit-learn library.
I have successfully installed it using the command pip install scikit-learn, so it's already satisfied, but when I import it using the commands
from sk_learn.feature_extraction.text import CountVectorizer
and from sk_learn.feature_extraction.text import TfidVectorizer it gives me an error.
this is the error:---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_17216/1887820170.py in <module>
----> 1 from sk_learn.feature_extraction.text import CountVectorizer
2 from sk_learn.feature_extraction.text import TfidVectorizer
ModuleNotFoundError: No module named 'sk_learn'
i'm using anaconda environment, i've installed SpaCy lib, when i import this lib in terminal (spacy) it works with no error.
but when i use jupyter notebook in the same environemnt does'nt work, and shows this error:
***---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-76a01d9c502b> in <module>
----> 1 import spacy
ModuleNotFoundError: No module named 'spacy'***
can anyone help with this error!
I have a module in my local directory ~/mglearn. How can I add it to my anaconda search path? I did the following but it doesn't work:
In [9]: sys.path.append("/home/abigail/mglearn")
In [10]: import mglearn
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-10-e19748f92cd9> in <module>()
----> 1 import mglearn
ImportError: No module named 'mglearn'
I believe you are referencing the mglearn library from the book Introduction to Machine Learning with Python. If that’s the case the library is available regularly through pip. You can use pip install mglean to add it to your anaconda search path.
I am trying to run Google Research's DeepDream code on a mac running OSx 10.9.5.
There are a few dependencies that I had to install. I am using the Anaconda distribution of python and I made sure that I have all the packages required.
The hardest thing was to install Caffe. I have ATLAS installed using fink. Then I have compiled caffe and pycaffe. When I ran 'make runtest' all tests passed. I also ran 'make distribute'.
When I run the notebook released from Google, I get the following error:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-8200bcb1df23> in <module>()
7 from google.protobuf import text_format
8
----> 9 import caffe
10
11 def showarray(a, fmt='jpeg'):
ImportError: No module named caffe
How can this be? What can I try to do to fix it?
I've installed FLANN with the following command:
brew install flann --enable-python
But I cannot import the module from within Python:
In [4]: import pyflann
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-4-b6d4c333a325> in <module>()
----> 1 import pyflann
ImportError: No module named pyflann
Both flann and pyflann don't work. It would also be nice if I could make this module available within a virtualenv as well.
Help would be much appreciated, thank you.
I got it! I looked in here /usr/local/Cellar/flann/1.8.4/share/flann/python and saw a setup.py file. I enabled my virtualenv and then ran python setup.py install. It now works!