`Solving environment: failed` error when doing `conda env` - anaconda

I have python 3.7 and latest anaconda.
I am having Solving environment: failed issue with this error code.
ResolvePackageNotFound:
- jpeg==9c=h470a237_1
Could anyone teach me how to solve this problem?
(base) Koos-MBP:downloads jackykoo$ conda env create -f cvcourse_macos.yml
Collecting package metadata (repodata.json): done
Solving environment: failed
ResolvePackageNotFound:
- jpeg==9c=h470a237_1
- twisted==17.5.0=py36_0
(base) Koos-MBP:downloads jackykoo$
Here is my conda info
(base) Koos-MBP:downloads jackykoo$ conda info
active environment : base
active env location : /Users/jackykoo/opt/anaconda3
shell level : 1
user config file : /Users/jackykoo/.condarc
populated config files : /Users/jackykoo/.condarc
conda version : 4.7.12
conda-build version : 3.18.9
python version : 3.7.4.final.0
virtual packages :
base environment : /Users/jackykoo/opt/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /Users/jackykoo/opt/anaconda3/pkgs
/Users/jackykoo/.conda/pkgs
envs directories : /Users/jackykoo/opt/anaconda3/envs
/Users/jackykoo/.conda/envs
platform : osx-64
user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.4 Darwin/19.0.0 OSX/10.15
UID:GID : 501:20
netrc file : None
offline mode : False

Related

Conda PackagesNotFoundError prevents installing/uninstalling packages?

I have (what I thought to be) a stable conda environment (hold your laughter). In this environment, I've installed numba via pip (again, hold your laughter). I'd like to uninstall via pip, and re-install via conda.
I find this, after uninstalling via pip:
(tasso) ubuntu#ip-XXX:~/Work/ds_util/tasso$ conda install anaconda
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 missing from the target environment:
- mkl==2018.0.3=intel_1
- openmp==2018.0.3=intel_0
- intel-openmp==2019.1=intel_144
- zlib==1.2.11=5
- libffi==3.2.1=11
All of the typical conda tricks don't work here: conda install anaconda gives the same list of missing packages. I would expect a package manager to, you know, manage these packages? Is this a miniconda thing?
More context:
(tasso) ubuntu#ip-XXX:~/Work/ds_util/tasso$ conda info
active environment : tasso
active env location : /home/ubuntu/miniconda3/envs/tasso
shell level : 2
user config file : /home/ubuntu/.condarc
populated config files : /home/ubuntu/.condarc
conda version : 4.7.11
conda-build version : not installed
python version : 3.7.3.final.0
virtual packages :
base environment : /home/ubuntu/miniconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
package cache : /home/ubuntu/miniconda3/pkgs
/home/ubuntu/.conda/pkgs
envs directories : /home/ubuntu/miniconda3/envs
/home/ubuntu/.conda/envs
platform : linux-64
user-agent : conda/4.7.11 requests/2.22.0 CPython/3.7.3 Linux/4.15.0-1016-aws ubuntu/18.04.1 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False
I'm frustrated by environments that seem to always be out of sync with conda, is this a common problem people deal with?

conda: why I can not install pkgs in one environment, while I can install in another?

I'm using two environment of conda. I can not intall packages in one env, while I can intall packages in the other environment.
The error massage is: 'solving environment: failed'
system: windows 10 x64
The error msg:
(py3env) C:\>conda install cython
Collecting package metadata (current_repodata.json): done
Solving environment: failed
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- anaconda/pkgs/free/win-64::protobuf==3.2.0=py36_0 -> libprotobuf==3.2.0
- anaconda/pkgs/free/win-64::tensorflow==1.2.1=py36_0 -> backports.weakref==1.0rc1
- anaconda/pkgs/free/win-64::tensorflow==1.2.1=py36_0 -> bleach==1.5.0
- anaconda/pkgs/free/win-64::tensorflow==1.2.1=py36_0 -> html5lib==0.9999999
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/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.
While the success info in another environment:
(py2env) C:\>conda install cython Collecting package metadata (current_repodata.json): done Solving environment: done
## Package Plan ##
environment location: C:\Users\sonic\Anaconda3\envs\py2env
added / updated specs:
- cython
The following packages will be downloaded:
package | build
---------------------------|-----------------
certifi-2019.6.16 | py27_0 151 KB
cython-0.29.11 | py27hc56fc5f_0 2.0 MB
------------------------------------------------------------
Total: 2.1 MB
The following NEW packages will be INSTALLED:
cython pkgs/main/win-64::cython-0.29.11-py27hc56fc5f_0
The following packages will be UPDATED:
certifi anaconda/pkgs/free::certifi-2016.2.28~ --> pkgs/main::certifi-2019.6.16-py27_0
Proceed ([y]/n)?
I think it is because you have packages installed from the "free" channel, but that channel has been removed. So conda is confused about what to do. You should read the blog post anaconda.com/why-we-removed-the-free-channel-in-conda-4-7 and temporarily add the "free" channel back to your configuration as described in that blog by running the command conda config --set restore_free_channel true. After you run that command, you can set the restore free channel back to false if you finished installing the Cython. Thanks for the comments of #darthbith

Anaconda Modules Inaccessible

Disclaimer: something went wrong with my Anaconda environment at one point and my best guess was simply to uninstall/reinstall Anaconda, but now I have been getting the following errors.
I have reinstalled Anaconda successfully, and can verify the presence of various modules. However, when I try to call any given module in Terminal (e.g., jupyter notebook) I get a variation of the following error:
Traceback (most recent call last):
File "/Users/MYNAME/anaconda3/bin/jupyter", line 7, in <module>
from jupyter_core.command import main
ImportError: No module named jupyter_core.command
I do not have sufficient experience with command line programming to decipher other posts on this topic... I'm assuming there's a problem with the executable paths or something? If it helps, here is the output of conda info for me:
active environment : None
shell level : 0
user config file : /Users/MYNAME/.condarc
populated config files : /Users/MYNAME/.condarc
conda version : 4.6.8
conda-build version : 3.17.6
python version : 3.7.1.final.0
base environment : /anaconda3 (writable)
channel URLs : 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
package cache : /anaconda3/pkgs
/Users/MYNAME/.conda/pkgs
envs directories : /anaconda3/envs
/Users/MYNAME/.conda/envs
platform : osx-64
user-agent : conda/4.6.8 requests/2.21.0 CPython/3.7.1
Darwin/18.5.0 OSX/10.14.4
UID:GID : MYUID
netrc file : None
offline mode : False
Just reinstall jupyter notebook under that specific conda virtual environment.
Like:
balabala$ conda activate tensorflow_gpuenv
balabala$ pip install jupyter
(I am using ubuntu.)

How to install Dryscrape on Windows Anaconda?

I'm trying to follow the instructions but Anaconda Prompt always fail. How do I install Dryscrape on Windows Anaconda?
https://anaconda.org/floriangeigl/dryscrape
Anaconda Prompt (Windows)
conda install -c floriangeigl dryscrape
> conda install dryscrape
Solving environment: failed
//___________________________________________
> conda install -c floriangeigl dryscrape
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- dryscrape
Current channels:
- https://conda.anaconda.org/floriangeigl/win-64
- https://conda.anaconda.org/floriangeigl/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/win-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/win-64
- https://repo.anaconda.com/pkgs/pro/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/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.
If you look at the Files tab of the page you linked, you'll see the package is only available for linux-64 from that channel. Unfortunately, no one else seems to have uploaded that package to a public channel. Checking the README, it seems that Windows is supported only via Cygwin.

How can I change anaconda's python version to 3.3 from 3.4

I've been used anaconda for 2 months and it's fantastic tool for me.
At first, I'd started with anaconda 2 (w/ python 2.7) but I changed to the latest version, which has python 3.4 and currently my anaconda version is 2.2.0.
And, because I should install basemap library I googled and found the answer that anaconda can support basemap using it's conda tool.
But, when I finished conda install basemap, I saw the messssage that conflict occured with python 3.4 like below.
Fetching package metadata: Could not connect to https://repo.continuum.io/pkgs/free/win-64/
Could not connect to https://repo.continuum.io/pkgs/pro/win-64/
Could not connect to https://repo.continuum.io/pkgs/free/noarch/
.Could not connect to https://repo.continuum.io/pkgs/pro/noarch/
...
Solving package specifications: ..
Error: Unsatisfiable package specifications.
Generating hint:
[ COMPLETE ] |#################################################| 100%
Hint: the following combinations of packages create a conflict with the
remaining packages:
- python 3.4*
- basemap
I understand this message as I should change my python version. Is it right? If so, how can I chnage, I mean downgrade from 3.4 to 3.3?
If not, why installation failed?
Getting a specific version of Python, or a package, is very easy in Anaconda. Anaconda allows you to create environments where you can have specific versions separated from each other.
conda create -n py33 python=3.3 basemap
The above will create an environment with python 3.3, basemap, and any dependencies needed. The format is to specify a name after the -n(I used py33) and specify the version after the package with an equals sign. Then to use this environment you simply activate it as follows:
Windows:
source py33
Mac OS X/Linux:
source activate py33
Per docs, basemap is only available for Python 2.7 on windows OS. For Unix systems it's available for Python 2.6, 2.7, 3.3 and 3.4.
The conflict occurs when you you have Python 3.x on windows and you try to install Basemap through conda install basemap.
Here's conda info basemap output specifically listing the dependencies for the variant versions of numpy.
C:\Anaconda3>conda info basemap
Fetching package metadata: ....
basemap 1.0.7 np19py27_0
------------------------
file name : basemap-1.0.7-np19py27_0.tar.bz2
name : basemap
version : 1.0.7
build number: 0
build string: np19py27_0
channel : defaults
size : 120.5 MB
date : 2014-09-09
license : PSF
md5 : 18142d0b3ede8b156f31c627d78aea72
installed environments:
dependencies:
matplotlib
numpy 1.9*
python 2.7*
basemap 1.0.7 np18py27_0
------------------------
file name : basemap-1.0.7-np18py27_0.tar.bz2
name : basemap
version : 1.0.7
build number: 0
build string: np18py27_0
channel : defaults
size : 120.5 MB
date : 2014-08-22
license : PSF
md5 : 14cabc1a134b14073fe3afa943753888
installed environments:
dependencies:
matplotlib
numpy 1.8*
python 2.7*
basemap 1.0.7 np17py27_0
------------------------
file name : basemap-1.0.7-np17py27_0.tar.bz2
name : basemap
version : 1.0.7
build number: 0
build string: np17py27_0
channel : defaults
size : 120.5 MB
date : 2014-08-22
license : PSF
md5 : 6bcb42a4435836b342c96d94a98ef785
installed environments:
dependencies:
matplotlib
numpy 1.7*
python 2.7*
basemap 1.0.7 np110py27_0
-------------------------
file name : basemap-1.0.7-np110py27_0.tar.bz2
name : basemap
version : 1.0.7
build number: 0
build string: np110py27_0
channel : defaults
size : 120.5 MB
date : 2015-10-06
license : PSF
md5 : e451471ff2a2ccdbf09e81c61cc103bb
installed environments:
dependencies:
matplotlib
numpy 1.10*
python 2.7*
The anaconda install doesn't work with Python 3 right now so going from 3.4 to 3.3 won't help you. Here is what I had to do to get basemap with anaconda (on Windows):
Create a new environment with the latest version of Python 2
conda create --name py2 python=2.7
Change to that environment:
activate py2
Install basemap:
conda install -c https://conda.anaconda.org/anaconda basemap

Resources