Unable to install spacy with Anaconda - python

The error that my pycharm shows me is this:
Executed command:
C:\Users\Felipe\Anaconda3\Scripts\conda.exe install -p C:/Users/Felipe/Anaconda3/envs/NLP spacy -y
Error ocurred:
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Command output:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...working...
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
Building graph of deps: 0%| | 0/3 [00:00<?, ?it/s]
Examining python=3.8: 0%| | 0/3 [00:00<?, ?it/s]
Examining spacy: 33%|###3 | 1/3 [00:00<00:00, 21.35it/s]
Examining #/win-64::__cuda==11.0=0: 67%|######6 | 2/3 [00:01<00:00, 1.95it/s]
Examining #/win-64::__cuda==11.0=0: 100%|##########| 3/3 [00:01<00:00, 2.92it/s]
Determining conflicts: 0%| | 0/3 [00:00<?, ?it/s]
Examining conflict for python spacy: 0%| | 0/3 [00:00<?, ?it/s]
Examining conflict for __cuda: 33%|###3 | 1/3 [00:00<00:00, 5.01it/s]
Examining conflict for __cuda: 67%|######6 | 2/3 [00:00<00:00, 10.02it/s]
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==11.0=0
- feature:|#/win-64::__cuda==11.0=0
Your installed CUDA driver is: 11.0
I realy need to get trouth this to keep studing!

To install the most recent version of spacy with conda (which includes builds for python 3.8), install spacy from the conda-forge channel with:
conda install -c conda-forge spacy

Related

Problem in installing fasttext in M1 Mac - python 3.8

Tried the following command for installing fasttext
conda install -c "conda-forge/label/cf202003" fasttext
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- fasttext
Current channels:
- https://conda.anaconda.org/conda-forge/label/cf202003/osx-arm64
- https://conda.anaconda.org/conda-forge/label/cf202003/noarch
- https://repo.anaconda.com/pkgs/main/osx-arm64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/osx-arm64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/osx-arm64
- https://repo.anaconda.com/pkgs/r/noarch
- https://conda.anaconda.org/conda-forge/osx-arm64
- https://conda.anaconda.org/conda-forge/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
Tried this approach
$ git clone https://github.com/facebookresearch/fastText.git
$ cd fastText
$ pip install .
and got this error
Building wheels for collected packages: fasttext
Building wheel for fasttext (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
.....
raise RuntimeError(
RuntimeError: libc++ is needed! Failed to compile with -stdlib=libc++ -mmacosx-version-min=10.7 and -stdlib=libc++.
[end of output]

Miniconda python UnsatisfiableError: The following specifications were found to be incompatible with each other:

I am trying to install geopandas in python with the command:
conda install -c "conda-forge/label/cf202003" geopandas
(I use intel compiler for miniconda and linux centos)
But, the feedback is :
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages. failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:
feature:/linux-64::__glibc==2.17=0
feature:|#/linux-64::__glibc==2.17=0
Your installed version is: 2.17
I tried to install geopandas.

unable to install mkl mkl-service using conda in docker

I have docker file like below:
FROM continuumio/miniconda3
RUN conda update -n base -c defaults conda
RUN conda create -c conda-forge -n pymc3_env pymc3 numpy theano-pymc mkl mkl-service
COPY ./src /app
WORKDIR /app
CMD ["conda", "run", "-n", "pymc3_env", "python", "ma.py"]
I get the following error:
------
> [3/5] RUN conda create -c conda-forge -n pymc3_env pymc3 numpy theano-pymc mkl mkl-service:
#0 0.400 Collecting package metadata (current_repodata.json): ...working... done
#0 9.148 Solving environment: ...working... failed with repodata from current_repodata.json, will retry with next repodata source.
#0 9.149 Collecting package metadata (repodata.json): ...working... done
#0 45.81 Solving environment: ...working... failed
#0 45.82
#0 45.82 PackagesNotFoundError: The following packages are not available from current channels:
#0 45.82
#0 45.82 - mkl-service
#0 45.82 - mkl
#0 45.82
#0 45.82 Current channels:
#0 45.82
#0 45.82 - https://conda.anaconda.org/conda-forge/linux-aarch64
#0 45.82 - https://conda.anaconda.org/conda-forge/noarch
#0 45.82 - https://repo.anaconda.com/pkgs/main/linux-aarch64
#0 45.82 - https://repo.anaconda.com/pkgs/main/noarch
#0 45.82 - https://repo.anaconda.com/pkgs/r/linux-aarch64
#0 45.82 - https://repo.anaconda.com/pkgs/r/noarch
#0 45.82
#0 45.82 To search for alternate channels that may provide the conda package you're
#0 45.82 looking for, navigate to
#0 45.82
#0 45.82 https://anaconda.org
#0 45.82
#0 45.82 and use the search bar at the top of the page.
#0 45.82
#0 45.82
------
failed to solve: executor failed running [/bin/sh -c conda create -c conda-forge -n pymc3_env pymc3 numpy theano-pymc mkl mkl-service]: exit code: 1
Can anybody help me to understand why conda could not find mkl and mkl-service in conda-forge channel and what do I need to resolve this?
I am using macos as a host, if it is any concern.
Thanks in advance for any help.
MKL only works for x86_64, that is the Docker image must use the platform linux/amd64. So, either specify --platform=linux/amd64 in the build command line or in the FROM.

Installing xarray_spatial - UnsatisfiableError - But there are no incompatible specifications displayed

I am trying to install xarray-spatial using anaconda. I am getting an UnsatisfiableError, but there are no deatils of any incompatible specifications.
Running the following command:
(geo_env) C:\Users\Alex>conda install -c conda-forge xarray-spatial
Here are the details of the error:
(geo_env) C:\Users\Alex>conda install -c conda-forge xarray-spatial
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Note that strict channel priority may have removed packages required for satisfiability.

error in installing package tensorflow in window

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
this type of error is coming while installing tensorflow library in anaconda base enviroment.

Categories

Resources