I'm using Anaconda and I'm trying to install spaCy.
At this point:
python -m spacy download fr_core_news_sm
I get stuck with the "no module named spacy" error.
Don't understand what I'm doing wrong.
Thanks,
You have to install spaCy before you use it to download a model. You can use the install helper to guide you on how to this, for example:
conda install -c conda-forge spacy
python -m spacy download fr_core_news_sm
Related
So when I try to import torch in jupyter notebook it gives the error no module named 'torch'.
I created a conda environment named "Thesis" where I work in and install my packages.
When I try these commands in my terminal it says the package is installed (see three images below):
torch1
torch2
torch3
I tried many commands to install the package:
pip install torchvision
python3 -m pip install torchvision
conda install pytorch torchvision -c pytorch
I also tried installing the package directly in the jupyter notebook itself via:
import sys
!{sys.executable} -m pip install torchvision
It at least shows something but I got the following dependency error
dependency error
I also created a kernel
ipython kernel install --name "thesis" --user
All did not help and I still receive the error in jupyter notebook.
Does somebody know how to resolve this?
I solved the problem by downloading and activating virtualenv with:
python3 -m pip install virtualenv
virtualenv <my_env_name>
source <my_env_name>/bin/activate
And getting the path in the jupyter notebook by:
import sys
print(sys.executable)
which outputs:
/Users/{username}/opt/anaconda3/bin/python
And installing the packages in the terminal via:
/Users/{username}/opt/anaconda3/bin/python -m pip install {package_name}
I get this error on Jupyter
ModuleNotFoundError: No module named 'seaborn'
but when I install it on the anaconda prompt I get this -
please help me :)
Please confirm which pip and which python version is used
python --version
python -m pip install seaborn
pip3 may be pointing to an old or different python installation.
When I try to pip install scikit-learn my IDE(PyCharm) shows an error "No module named 'Cython'"
And also with matplotlib it says could not find suitabe distribution for Requirement.parse('numpy>=1.11')
I am a beginner and I don't know how to tackle this can someone please help ?
Run first:
pip install Cython
then install scikit-learn:
pip install -U scikit-learn
I can not find a solution to install tensorflow on anaconda/mac.
When i try: conda install tensorflow,
I get:
UnsatisfiableError: The following specifications were found to be in conflict:
- blaze -> numba -> numpy=1.13
- tensorflow
Use "conda info " to see the dependencies for each package.
I tried reinstalling numpy, and could not find any relevant documentation.
On mac use following command:
conda install -c conda-forge tensorflow
This will install the latest Tensorflow on your system. if you wish to upgrade it to newer version then you can use the following command
conda update -f -c conda-forge tensorflow
I have had success installing tensorflow through pip...
pip install tensorflow
or, if you have all of the proper libraries...
pip install tensorflow-gpu
But if you have already removed numpy form the anaconda install, you might be in for a long day because almost all of the numeric packages require it. If the above pip install doesn't work, you might want to start from a clean anaconda install.
I have installed tensorflow using -
pip install tensorflow
Or, you can use Anaconda in following way -
Open Anaconda Navigator
On Left side go to Environments
Create a new environment (eg :- tensorflow_tf), select python 3.7
then select Not installed and Search "tensorflow"
click on tensorflow and apply
I have installed Anaconda 3.x for 64 bit in a Windows 10 system. I have installed spacy by pip install -U spacy
WHen i run install spacy in Notebook i get an 'DLL Load' error like this
You can install spacy and download en in the jupyter notebook as:
import sys
!{sys.executable} -m pip install spacy
!{sys.executable} -m spacy download en
!conda install -c spacy spacy=0.101.0 -y
!python -m spacy.en.download
! pip install SpaCy
! python -m spacy download en
This really worked !
To install spacy on jupyter notebook use pip install SpaCy
Go to Anaconda Navigator -> at the environment, go to the base(root)-> open terminal
type this command:
conda install -c conda-forge spacy
Spacy configuration in Anaconda
Spacy configuration in Anaconda
Spacy configuration at Terminal
To install spacy in jupyter notebook.
Open cmd or anaconda prompt.
run pip install spacy as the base user.
it will now work in jupyter notebook but it may take some time to import the modules.