Broke my conda. Can't install packages from custom channel any longer - python

I've inherited a machine, with an Anaconda installation, on which I must manage my python environments.
I have a custom channel, on a network share, that I host my conda packages on. It has the highest priority.
Everything was working to my satisfaction, except that conda update -n base -c defaults conda has become extremely slow. Sometimes I have to kill it after a few hours.
After looking for solutions to speed up environment solve, I edited my conda config by doing:
conda config --set channel_priority strict
conda config --set default_threads 4
Neither of which helped, so I reverted to my previous conda config settings.
Now, when I try to update/install a package from my channel to any environment it fails. Installing standard packages like numpy still works.
To keep things simple, I have created a "scratch" environment with python only. It contains:
# packages in environment at C:\ProgramData\Anaconda3\envs\scratch:
#
# Name Version Build Channel
ca-certificates 2021.10.26 haa95532_4
certifi 2021.10.8 py39haa95532_2
openssl 1.1.1m h2bbff1b_0
pip 21.2.4 py39haa95532_0
python 3.9.7 h6244533_1
setuptools 58.0.4 py39haa95532_0
sqlite 3.37.2 h2bbff1b_0
tzdata 2021e hda174b7_0
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
wheel 0.37.1 pyhd3eb1b0_0
wincertstore 0.2 py39haa95532_2
I have a package foo_package, which conda sees on my channel:
(scratch) PS C:\Users\griffin> conda search foo_package
Loading channels: done
# Name Version Build Channel
foo_package 1.0 py36_0 custom_packages
foo_package 1.0 py37_0 custom_packages
foo_package 1.0 py38_0 custom_packages
foo_package 1.0 py39_0 custom_packages
When I try to install it:
(scratch) PS C:\Users\griffin> conda install foo_package
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 the existing python installation in your environment:
Specifications:
- foo_package -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0']
Your python: python=3.9
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
I have no idea where it is getting that python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0'] dependency from. The meta data for my package is very simple:
package:
name: foo_package
version: 1.0
source:
path: .
requirements:
host:
- python
run:
- python
- redis-py
The same set up continues to work on my other machines. So I feel it must be something to do with the configuration.
I looked at all the possible places a condarc file could be. I found two, and they seemed contradictory. So I deleted them both and re-added my custom channel to the list.
But the issue persists. What can I do?
My current conda config looks like so:
(base) PS C:\Users\griffin> conda config --show
add_anaconda_token: True
add_pip_as_python_dependency: True
aggressive_update_packages:
- ca-certificates
- certifi
- openssl
allow_conda_downgrades: False
allow_cycles: True
allow_non_channel_urls: False
allow_softlinks: False
always_copy: False
always_softlink: False
always_yes: None
anaconda_upload: None
auto_activate_base: True
auto_stack: 0
auto_update_conda: True
bld_path:
changeps1: True
channel_alias: https://conda.anaconda.org
channel_priority: flexible
channels:
- N:\path\to\channel\custom_packages
- defaults
client_ssl_cert: None
client_ssl_cert_key: None
clobber: False
conda_build: {}
create_default_packages: []
croot: C:\ProgramData\Anaconda3\conda-bld
custom_channels:
pkgs/main: https://repo.anaconda.com
pkgs/r: https://repo.anaconda.com
pkgs/msys2: https://repo.anaconda.com
pkgs/pro: https://repo.anaconda.com
custom_multichannels:
defaults:
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- https://repo.anaconda.com/pkgs/msys2
local:
debug: False
default_channels:
- https://repo.anaconda.com/pkgs/main
- https://repo.anaconda.com/pkgs/r
- https://repo.anaconda.com/pkgs/msys2
default_python: 3.7
default_threads: None
deps_modifier: not_set
dev: False
disallowed_packages: []
download_only: False
dry_run: False
enable_private_envs: False
env_prompt: ({default_env})
envs_dirs:
- C:\ProgramData\Anaconda3\envs
- C:\Users\griffin\.conda\envs
- C:\Users\griffin\AppData\Local\conda\conda\envs
error_upload_url: https://conda.io/conda-post/unexpected-error
execute_threads: 1
extra_safety_checks: False
force: False
force_32bit: False
force_reinstall: False
force_remove: False
ignore_pinned: False
json: False
local_repodata_ttl: 1
migrated_channel_aliases: []
migrated_custom_channels: {}
non_admin_enabled: True
notify_outdated_conda: True
offline: False
override_channels_enabled: True
path_conflict: clobber
pinned_packages: []
pip_interop_enabled: False
pkgs_dirs:
- C:\ProgramData\Anaconda3\pkgs
- C:\Users\griffin\.conda\pkgs
- C:\Users\griffin\AppData\Local\conda\conda\pkgs
proxy_servers: {}
quiet: False
remote_backoff_factor: 1
remote_connect_timeout_secs: 9.15
remote_max_retries: 3
remote_read_timeout_secs: 60.0
repodata_fns:
- current_repodata.json
- repodata.json
repodata_threads: None
report_errors: None
restore_free_channel: False
rollback_enabled: True
root_prefix: C:\ProgramData\Anaconda3
safety_checks: warn
sat_solver: pycosat
separate_format_cache: False
shortcuts: True
show_channel_urls: None
signing_metadata_url_base: None
solver_ignore_timestamps: False
ssl_verify: True
subdir: win-64
subdirs:
- win-64
- noarch
target_prefix_override:
track_features: []
unsatisfiable_hints: True
unsatisfiable_hints_check_depth: 2
update_modifier: update_specs
use_index_cache: False
use_local: False
use_only_tar_bz2: True
verbosity: 0
verify_threads: 1
whitelist_channels: []

Related

‘’The environment is inconsistent, please check the package plan carefully‘’ always appears

I tried to install new packages from anaconda and this message has appeared:
(base) C:\Users\lenovo>conda install anaconda
Collecting package metadata (current_repodata.json): done
Solving environment: \
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
I tried with conda install anaconda,conda update --all and conda install anaconda-clean,respectively,but it persists.
I CANT EVEN UNINSTALL ANACONDA DUE TO THE SAME ISSUE!
Did anyone get any progress on this?
Here are some details:
(base) C:\Users\lenovo>conda install anaconda
Collecting package metadata (current_repodata.json): done
Solving environment: \
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- defaults/win-64::anaconda==custom=py38_1
- conda-forge/win-64::astropy==5.0.2=py38h6f4d8f0_0
- https://repo.anaconda.com/pkgs/main/win-64::bkcharts==0.2=py38_0
- conda-forge/win-64::bokeh==2.4.2=py38haa244fe_0
- conda-forge/win-64::bottleneck==1.3.4=py38h6f4d8f0_0
- conda-forge/win-64::daal4py==2021.5.0=py38he5193b3_0
- conda-forge/noarch::dask==2022.3.0=pyhd8ed1ab_0
- https://repo.anaconda.com/pkgs/main/win-64::h5py==2.10.0=py38h5e291fa_0
- conda-forge/win-64::imagecodecs==2022.2.22=py38h19b08ce_0
- conda-forge/noarch::imageio==2.16.1=pyhcf75d05_0
- conda-forge/win-64::matplotlib==3.5.1=py38haa244fe_0
- conda-forge/win-64::matplotlib-base==3.5.1=py38h1f000d6_0
- https://repo.anaconda.com/pkgs/main/win-64::mkl_fft==1.1.0=py38h45dec08_0
- https://repo.anaconda.com/pkgs/main/win-64::mkl_random==1.1.1=py38h47e9c7a_0
- conda-forge/noarch::networkx==2.7.1=pyhd8ed1ab_0
- conda-forge/win-64::numba==0.55.1=py38h5858985_0
- https://repo.anaconda.com/pkgs/main/win-64::numexpr==2.7.1=py38h25d0782_0
- conda-forge/win-64::pandas==1.4.1=py38h5d928e2_0
- conda-forge/noarch::patsy==0.5.2=pyhd8ed1ab_0
- conda-forge/win-64::pyerfa==2.0.0.1=py38h6f4d8f0_1
- https://repo.anaconda.com/pkgs/main/win-64::pytables==3.6.1=py38ha5be198_0
- https://repo.anaconda.com/pkgs/main/noarch::python-jsonrpc-server==0.3.4=py_1
- https://repo.anaconda.com/pkgs/main/win-64::python-language-server==0.34.1=py38_0
- conda-forge/win-64::pywavelets==1.3.0=py38h6f4d8f0_0
- conda-forge/win-64::scikit-image==0.19.2=py38h5d928e2_0
- conda-forge/win-64::scikit-learn==1.0.2=py38hb60ee80_0
- conda-forge/win-64::scikit-learn-intelex==2021.5.0=py38haa244fe_1
- conda-forge/win-64::scipy==1.8.0=py38ha1292f7_1
- conda-forge/noarch::seaborn==0.11.2=hd8ed1ab_0
- conda-forge/noarch::seaborn-base==0.11.2=pyhd8ed1ab_0
- https://repo.anaconda.com/pkgs/main/win-64::spyder==4.1.4=py38_0
- conda-forge/win-64::statsmodels==0.13.2=py38h6f4d8f0_0
- conda-forge/noarch::tifffile==2022.3.16=pyhd8ed1ab_0
- pytorch/win-64::torchaudio==0.11.0=py38_cpu
- pytorch/win-64::torchvision==0.12.0=py38_cpu
- defaults/win-64::_anaconda_depends==2021.11=py38_0
failed with initial frozen solve. Retrying with flexible solve.
Conda Info
active environment : base
active env location : G:\anaconda3
shell level : 1
user config file : C:\Users\lenovo\.condarc
populated config files : C:\Users\lenovo\.condarc
conda version : 4.12.0
conda-build version : 3.18.11
python version : 3.8.3.final.0
virtual packages : __cuda=11.6=0
__win=0=0
__archspec=1=x86_64
base environment : G:\anaconda3 (writable)
conda av data dir : G:\anaconda3\etc\conda
conda av metadata url : None
channel URLs : http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/noarch
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/win-64
http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/noarch
package cache : G:\anaconda3\pkgs
C:\Users\lenovo\.conda\pkgs
C:\Users\lenovo\AppData\Local\conda\conda\pkgs
envs directories : G:\anaconda3\envs
C:\Users\lenovo\.conda\envs
C:\Users\lenovo\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.12.0 requests/2.27.1 CPython/3.8.3 Windows/10 Windows/10.0.22000
administrator : False
netrc file : None
offline mode : False
I had a very similar problem as you: couldn't install fbprophet and failed to solve the environment when I tried to update conda. As suggested in this website and this stackoverflow question, I tried the command conda config --set channel_priority flexible. After that, I could run conda install anaconda and the environment failed to solve at the first time, but then downloaded / downgraded / changed the packages successfully.

`conda install` reporting failure to find package that `conda search` finds?

I'm getting this error when attempting to install a package:
(pybert-tst)
dbanas#Davids-MacBook-Pro:~/Documents/Projects/PyBERT
$ conda install -c dbanas pybert
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- pybert
Use "conda search <package> --info" to see the dependencies for each package.
But, I see the pybert package when I search:
(pybert-tst)
dbanas#Davids-MacBook-Pro:~/Documents/Projects/PyBERT
$ conda search -c dbanas pybert --info
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Loading channels: done
pybert 3.1.0 pyh7b7c402_2
-------------------------
file name : pybert-3.1.0-pyh7b7c402_2.tar.bz2
name : pybert
version : 3.1.0
build : pyh7b7c402_2
build number: 2
size : 235 KB
license : BSD License
subdir : noarch
url : https://conda.anaconda.org/dbanas/noarch/pybert-3.1.0-pyh7b7c402_2.tar.bz2
md5 : 9537824117ffca8bd024f74cd0f44c7a
timestamp : 2019-07-16 22:18:08 UTC
dependencies:
- chaco
- docutils
- enable
- jinja2
- kiwisolver
- numpy
- pygments
- pyibis-ami >=3.0.0
- python >=3.7.0,<3.8
- scikit-rf
- scipy
- sphinx
- traits
- traitsui
Does anyone know what's going on?
This was caused by two dependencies of the pybert package being locked to Python 2.7, while Python itself was calling for Python 3.7.
I sure would've been nice to have seen the names of those two other packages in the error message. :(

How to install fiona 1.6?

I am trying to install fiona=1.6 but I get the following error
conda install fiona=1.6
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: -
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- conda-forge/noarch::flask-cors==3.0.7=py_0
- conda-forge/osx-64::blaze==0.11.3=py36_0
- conda-forge/noarch::flask==1.0.2=py_2
failed
PackagesNotFoundError: The following packages are not available from current channels:
- fiona=1.6 -> gdal==1.11.4
Current channels:
- https://conda.anaconda.org/conda-forge/osx-64
- 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
If I try to install gdal==1.11.4, I get the following
conda install -c conda-forge gdal=1.11.4
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: |
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- conda-forge/noarch::flask-cors==3.0.7=py_0
- conda-forge/osx-64::blaze==0.11.3=py36_0
- conda-forge/noarch::flask==1.0.2=py_2
failed
PackagesNotFoundError: The following packages are not available from current channels:
- gdal=1.11.4
Current channels:
- https://conda.anaconda.org/conda-forge/osx-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/osx-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/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.
This is the result of conda info
conda info
active environment : base
active env location : /anaconda3
shell level : 1
user config file : /Users/massaro/.condarc
populated config files : /Users/massaro/.condarc
conda version : 4.6.11
conda-build version : 3.17.8
python version : 3.6.8.final.0
base environment : /anaconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
package cache : /anaconda3/pkgs
/Users/massaro/.conda/pkgs
envs directories : /anaconda3/envs
/Users/massaro/.conda/envs
platform : osx-64
user-agent : conda/4.6.11 requests/2.21.0 CPython/3.6.8 Darwin/17.5.0 OSX/10.13.4
UID:GID : 502:20
netrc file : None
Python Versions
The Conda Forge channel only has gdal v1.11.4 for Python 2.7, 3.4, and 3.5. You either need to use a newer version of Fiona (current is 1.8) or make a new env that includes one of those older Python versions.
For example,
conda create -n fiona_1_6 fiona=1.6 python=3.5
Channel defaults is Required
Another issue you face is that you have removed the defaults channel from your configuration (as per your conda info). It is impossible to install fiona=1.6 with only the conda-forge channel. My recommendation would be to have both conda-forge and defaults in your configuration, but just set conda-forge to have higher priority (if that's what you want). You can do this like so,
conda config --append channels defaults
If you really don't want to include defaults, but just want a temporary workaround, then you can simply run the first command with a --channels | -c flag
conda create -n fiona_1_6 -c conda-forge -c defaults fiona=1.6 python=3.5
This will still give conda-forge precedence, but allow missing dependencies to be sourced from defaults.
Environment File
If you have more than just Fiona that you require, it may be cleaner to put together a requirements file, like so
fiona_1_6.yaml
name: fiona_1_6
channels:
- conda-forge
- defaults
dependencies:
- python=3.5
- fiona=1.6
- osmnx
Then create the new environment with this:
conda env create -f fiona_1_6.yaml
Doing what the error message told me to,
To search for alternate channels that may provide the conda package you're
looking for, navigate to https://anaconda.org
and typing in gdal in the search box led me to https://anaconda.org/conda-forge/gdal which has this installation instruction:
conda install -c conda-forge gdal=1.11.4
Try that to install the gdal dependency, maybe?

Conda can't find packages at pypi.org/simple

I have a problem with installing packages via conda. It can not find any package in channel https://pypi.org simple.
conda install logbook
returns:
PS C:\WINDOWS\system32> conda config --add channels
https://pypi.org/simple
Warning: 'https://pypi.org/simple' already in 'channels' list, moving to the top
PS C:\WINDOWS\system32> conda install Logbook
Fetching package metadata ....
WARNING: The remote server could not find the noarch directory for the
requested channel with url: https://pypi.org/simple
It is possible you have given conda an invalid channel. Please double-check
your conda configuration using `conda config --show`.
If the requested url is in fact a valid conda channel, please request that the
channel administrator create `noarch/repodata.json` and associated
`noarch/repodata.json.bz2` files, even if `noarch/repodata.json` is empty.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json
...........
PackageNotFoundError: Packages missing in current channels:
- logbook
We have searched for the packages in the following channels:
- https://pypi.org/simple/win-64
- https://pypi.org/simple/noarch
- https://repo.continuum.io/pkgs/main/win-64
- https://repo.continuum.io/pkgs/main/noarch
- https://repo.continuum.io/pkgs/free/win-64
- https://repo.continuum.io/pkgs/free/noarch
- https://repo.continuum.io/pkgs/r/win-64
- https://repo.continuum.io/pkgs/r/noarch
- https://repo.continuum.io/pkgs/pro/win-64
- https://repo.continuum.io/pkgs/pro/noarch
- https://repo.continuum.io/pkgs/msys2/win-64
- https://repo.continuum.io/pkgs/msys2/noarch
I have checked manually in browser, that the logbook module is in the list on page https://pypi.org/simple.
hoever, it seems that conda seeks packages in https://pypi.org/simple/win-64, but the win-64 directory does not exist there.
conda config --show says, that configured channel is https://pypi.org/simple
add_anaconda_token: True
add_pip_as_python_dependency: True
allow_non_channel_urls: True
allow_softlinks: False
always_copy: False
always_softlink: False
always_yes: False
anaconda_upload: None
auto_update_conda: True
changeps1: True
channel_alias: https://conda.anaconda.org
channel_priority: True
channels:
- https://pypi.org/simple
- https://pypi.org/simple/
- defaults
client_ssl_cert: None
client_ssl_cert_key: None
clobber: False
create_default_packages: []
custom_channels:
pkgs/main: https://repo.continuum.io/
pkgs/free: https://repo.continuum.io/
pkgs/r: https://repo.continuum.io/
pkgs/pro: https://repo.continuum.io/
pkgs/msys2: https://repo.continuum.io/
C:/Program%20Files/Anaconda3/conda-bld: file:///
Any advice?
A conda channel has to have a specific layout (win-64, win-32, ...) and the package has to be built in a conda-specific way (see Building conda packages with conda skeleton). The packages are generally build against specific Python versions (although there should also be noarch packages) and/or numpy versions and for different platforms (windows, linux, mac 32bit or 64bit).
You cannot directly install packages from PyPI using conda because PyPI doesn't qualify as conda-channel and even if it were the packages there aren't build like conda-packages. But you can install them using pip (within conda).
But: You could check if the packages you want are distributed in a conda-conforming channel (a very popular channel currently is conda-forge). At a first glance several channels contain a package named logbook in the anaconda cloud (search results for logbook).
If you find a channel that distributes the desired version of your package (and against the desired Python version and platform) then just use:
conda install -c channel_name logbook
Many Python products are available for Windows on the Gohlke page.
Assuming you have 64-bit Py3.6 installed in its own environment, called Py36, you can do this.
Download Logbook-1.1.0-cp36-cp36m-win_amd64.whl from Gohlke (or whatever version it is that you need).
Then within a command prompt:
activate the conda environment where you want to install Logbook.
Use pip to install the whl that you have downloaded within that environment.
Verify success, if you wish.
C:\scratch>activate Py36
(Py36) C:\scratch>pip install Logbook-1.1.0-cp36-cp36m-win_amd64.whl
Processing c:\scratch\logbook-1.1.0-cp36-cp36m-win_amd64.whl
Installing collected packages: Logbook
Successfully installed Logbook-1.1.0
(Py36) C:\scratch>conda list
# packages in environment at C:\ProgramData\Miniconda3\envs\Py36:
#
beautifulsoup4 4.6.0 <pip>
certifi 2017.11.5 py36hb8ac631_0
chardet 3.0.4 <pip>
idna 2.6 <pip>
Logbook 1.1.0 <pip>
opencv-python 3.4.0+contrib <pip>
pip 9.0.1 py36h226ae91_4
python 3.6.3 h3b118a2_4
requests 2.18.4 <pip>
setuptools 36.5.0 py36h65f9e6e_0
urllib3 1.22 <pip>
vc 14 h2379b0c_2
vs2015_runtime 14.0.25123 hd4c4e62_2
wheel 0.30.0 py36h6c3ec14_1
wikipedia 1.4.0 <pip>
wincertstore 0.2 py36h7fe50ca_0
Edit: Answer to query in comment.
I entered this:
conda env export -n Py36 -f Py36.yml
Content of yaml file.
name: Py36
channels:
- defaults
dependencies:
- certifi=2017.11.5=py36hb8ac631_0
- pip=9.0.1=py36h226ae91_4
- python=3.6.3=h3b118a2_4
- setuptools=36.5.0=py36h65f9e6e_0
- vc=14=h2379b0c_2
- vs2015_runtime=14.0.25123=hd4c4e62_2
- wheel=0.30.0=py36h6c3ec14_1
- wincertstore=0.2=py36h7fe50ca_0
- pip:
- beautifulsoup4==4.6.0
- chardet==3.0.4
- idna==2.6
- logbook==1.1.0
- opencv-python==3.4.0+contrib
- requests==2.18.4
- urllib3==1.22
- wikipedia==1.4.0
prefix: C:\ProgramData\Miniconda3\envs\Py36

Downgrade Python to 3.5 - conflict with ppft/xz

I would like to downgrade Python from 3.6 to 3.5. conda tells me the following:
$ conda install python=3.5.0 -n myenv
Fetching package metadata .........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- ppft -> python 3.6* -> xz 5.2.*
- python 3.5.0*
Now knowing any of the packages in the first line, conda info ppft gives me ResolvePackageNotFound. conda info xz gives me a long list of versions, the latest of which is
xz 5.2.3 0
----------
file name : xz-5.2.3-0.tar.bz2
name : xz
version : 5.2.3
build string: 0
build number: 0
channel : defaults
size : 667 KB
arch : x86_64
date : 2017-08-18
license : Public-Domain, GPL
license_family: GPL2
md5 : 585458787b315ac1e5fb3a1ee71cad75
noarch : None
platform : linux
url : https://repo.continuum.io/pkgs/free/linux-64/xz-5.2.3-0.tar.bz2
dependencies:
How do I continue - what's going on?
First off ppft is not listed in the default anaconda directory but in conda-forge. But if you take a look at the files in that directory you will find there are versions for python 3.5. Furthermore according to the homepage for xz, it is compatible with python 2 or 3.
One option would be to remove the conflicting libraries, downgrade to 3.5, and then reinstall the libraries later. For example
conda uninstall ppft xz
conda install python=3.5 -n myenv
conda install xz
conda install -c conda-forge ppft

Categories

Resources