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

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.

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.

Error when trying to install cartopy python Anaconda

I am trying to install cartopy in my Anaconda installation, but it won't work. Here are the error messages. How do I get this package to install? I tried installing using
pip install cartopy
and
conda install -c conda-forge cartopy
Both give these errors:
Building wheels for collected packages: cartopy
Building wheel for cartopy (PEP 517): started
Building wheel for cartopy (PEP 517): finished with status 'error'
Failed to build cartopy
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ruben\anaconda3\python.exe' 'C:\Users\ruben\anaconda3\lib\site-
packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C
<string>:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 or
later installed, or installation may fail.
Fobuild\temp.win-amd64-cpython-39\Release\lib/cartopy/trace.obj
trace.cpp
lib/cartopy/trace.cpp(719): fatal error C1083: Cannot open include file: 'geos_c.h': No
such file or directory
error: command 'C:\\Program Files\\Microsoft Visual
Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\bin\\HostX86\\x64\\cl.exe' failed
with exit code 2
----------------------------------------
ERROR: Failed building wheel for cartopy
ERROR: Could not build wheels for cartopy which use PEP 517 and cannot be installed
directly
Anaconda gives me these errors:
conda install cartopy
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: |
Now it just sits there are spins.
I have the geos package installed. I don't knw why it can't find the installation.
This solved it for me in a Linux Mint system. I can see that OP's system is Windows, so not sure if it'll work for them also. But for folks on ubuntu/linux landing here,
We need to have libgeos-dev installed first:
sudo apt install libgeos-dev
got this from https://techoverflow.net/2021/08/13/6348/ .
This seems to provide the 'geos_c.h' file mentioned.
After this, pip install cartopy worked properly for me.

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.

Unable to install spacy with Anaconda

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

Categories

Resources