How to download and install spacy in conda - download

conda install -c conda-forge spacy
Gives me following error and I am not able to figure out why.
Note: you may need to restart the kernel to use updated packages.
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: spacy

Try:
conda install -c spacy spacy

Related

Anaconda - JupyterLab - spaCy : "No module named spacy" in terminal

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

Unable to install python graphviz package

When I am trying to install python-graphviz package on IBM Cloud as part of my final assignment for the course - ML with Python, I'm getting the following errors
ERROR: Could not find a version that satisfies the requirement python-graphviz (from versions: none)
ERROR: No matching distribution found for python-graphviz
The command I used is as follows:
!pip install python-graphviz
As per the lab instructions, the following commands to install pydotplus and python-graphviz didn't work.
#!conda install -c conda-forge pydotplus -y
#!conda install -c conda-forge python-graphviz -y
To summarize,
!pip install pydotplus ## THIS IS WORKING.
#!conda install -c conda-forge pydotplus -y ## THIS IS NOT WORKING
!pip install python-graphviz ## THIS IS NOT WORKING
#!conda install -c conda-forge python-graphviz -y ## THIS IS ALSO NOT WORKING.
Please advise me with the right instruction set - whether PIP or CONDA.
Thanks.
Regards,
Vasan S T
Try pip install graphviz after upgrading pip.

how to install fastai on windows 10

I cant seem to install the right version of torch and I cant get fast ai libraries working
I try
Python 3.7
pip3 install https://download.pytorch.org/whl/cu100/torch-1.0.1-cp37-cp37m-win_amd64.whl
pip3 install torchvision
Could not find a version that satisfies the requirement torch>=1.1.0 (from torchvision) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
No matching distribution found for torch>=1.1.0 (from torchvision)
I feel like I may of downgraded my gpu when I tried conda install fast ai
and then I tried pip and it couldnt find a file C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\caffe2\python\serialized_test\data\operator_test
I finally got to the point where it said successfully installed six, pillow, and torch but torch is at 0.3 which is incompatiable.
pip3 install https://download.pytorch.org/whl/cu100/torch-1.0.1-cp37-cp37m-win_amd64.whl
pip3 install torchvision
expected to install pytorch or fastai nothing seems to work
You may try installing the course by creating a conda environment provided anaconda is already installed in your windows machine.
conda update conda
conda create -n fastai_conda python=3.6
conda activate fastai_conda
conda install fastai pytorch=1.0.0 -c fastai -c pytorch -c conda-forge
Or for installing CPU version you can use the below commands after the environment is created
conda install -c pytorch pytorch-cpu torchvision
conda install -c fastai fastai
You can check if installation went right with this command
python -m fastai.utils.show_install
You may further need to install ipykernel to use the conda environment in your jupyter notebook.For that activate environment and run the following commands:
conda install nb_conda_kernels
python -m ipykernel install --user --name fastai_v1 --display-name "fastai v1"
conda install ipywidgets

Getting error while building PyTorch from source on Linux

I have a problem with building PyTorch from source. I use Anaconda Python 3.6. I installed all the dependencies using conda and issued "python setup.py install" command to build it. It builds all files successfully but then it fails" at line 286 of caffe2/contrib/cuda-convnet2"
Pls help! Thank you!
Installation with python 3.7 worked for me.
Try out the below steps
conda create -n <env_name> python=3.7
export CMAKE_PREFIX_PATH=/home/user/.conda/envs/<env_name> #change the path to yours
source activate <env_name>
conda install numpy pyyaml mkl mkl-include setuptools cmake cffi typing
conda install -c conda-forge opencv
conda install Pillow
git clone --recursive https://github.com/intel/pytorch
cd pytorch
mv caffe2/contrib/cuda-convnet2/ /tmp # Fix the bug removing the old package out
python setup.py install 2>&1 | tee build.out
Then try importing pytorch
cd ~
python
import torch
Hope this helps.

install spacy not working in jupyter notebook

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.

Resources