Conda create environment error

I exported an environment using conda env export > environment.yml. I installed miniconda3 on a different system, updated conda, installed pip. Then conda env create -f environment.yml -n py3 Ac...

I exported an environment using conda env export > environment.yml.
I installed miniconda3 on a different system, updated conda, installed pip.
Then conda env create -f environment.yml -n py3

Actual Behavior

It gives me this error message:

Solving environment: failed
ResolvePackageNotFound:
  - brewer2mpl==1.4=py36_0
  - ggplot==0.9.4=py36_0

Expected Behavior

The environment should be installed with the same packages indicated in the yml file. All necessary information, such as channels, should be provided by the yml file. And it should give a warning about packages from locally installed sources. I noted that e.g. the packages pyqsar from my source system is not available on the target system. Though conda did not raise a warning.

Steps to Reproduce

TARGET SYSTEM
     active environment : None
       user config file : /home/swacker/.condarc
 populated config files :
          conda version : 4.5.4
    conda-build version : not installed
         python version : 3.6.5.final.0
       base environment : /home/swacker/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/linux-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/linux-64
                          https://repo.anaconda.com/pkgs/pro/noarch
          package cache : /home/swacker/miniconda3/pkgs
                          /home/swacker/.conda/pkgs
       envs directories : /home/swacker/miniconda3/envs
                          /home/swacker/.conda/envs
               platform : linux-64
             user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Linux/3.10.0-693.17.1.el7.x86_64 centos/7 glibc/2.17
                UID:GID : 16608087:16608087
             netrc file : None
           offline mode : False

# packages in environment at /home/swacker/miniconda3:
#
# Name                    Version                   Build  Channel
asn1crypto                0.24.0                   py36_0    defaults
ca-certificates           2018.03.07                    0    defaults
certifi                   2018.4.16                py36_0    defaults
cffi                      1.11.5           py36h9745a5d_0    defaults
chardet                   3.0.4            py36h0f667ec_1    defaults
conda                     4.5.4                    py36_0    defaults
conda-env                 2.6.0                h36134e3_1    defaults
cryptography              2.2.2            py36h14c3975_0    defaults
idna                      2.6              py36h82fb2a8_1    defaults
libedit                   3.1                  heed3624_0    defaults
libffi                    3.2.1                hd88cf55_4    defaults
libgcc-ng                 7.2.0                hdf63c60_3    defaults
libstdcxx-ng              7.2.0                hdf63c60_3    defaults
ncurses                   6.0                  h9df7e31_2    defaults
openssl                   1.0.2o               h20670df_0    defaults
pip                       9.0.3                    py36_0    defaults
pycosat                   0.6.3            py36h0a5515d_0    defaults
pycparser                 2.18             py36hf9f622e_1    defaults
pyopenssl                 17.5.0           py36h20ba746_0    defaults
pysocks                   1.6.8                    py36_0    defaults
python                    3.6.5                hc3d631a_0    defaults
readline                  7.0                  ha6073c6_4    defaults
requests                  2.18.4           py36he2e5f8d_1    defaults
ruamel_yaml               0.15.35          py36h14c3975_1    defaults
setuptools                39.0.1                   py36_0    defaults
six                       1.11.0           py36h372c433_1    defaults
sqlite                    3.23.1               he433501_0    defaults
tk                        8.6.7                hc745277_3    defaults
urllib3                   1.22             py36hbe7ace6_0    defaults
wheel                     0.31.0                   py36_0    defaults
xz                        5.2.3                h55aa19d_2    defaults
yaml                      0.1.7                had09818_2    defaults
zlib                      1.2.11               ha838bed_2    defaults
environment.yml
cat environment.yml
name: py3
channels:
- conda-forge
- bioconda
- bokeh
- defaults
dependencies:
- p7zip=15.09=3
- brewer2mpl=1.4=py36_0
- ggplot=0.9.4=py36_0
- jupyter_dashboards=0.7.0=py36_0
- _tflow_180_select=1.0=gpu
- absl-py=0.2.1=py36_0
- asn1crypto=0.24.0=py36_0
- astor=0.6.2=py36_0
- backcall=0.1.0=py36_0
- backports=1.0=py36hfa02d7e_1
- backports.weakref=1.0.post1=py36h39d5b32_0
- blas=1.0=mkl
- bleach=1.5.0=py36_0
- blosc=1.14.3=hdbcaa40_0
- bokeh=0.12.16=py36_0
- bzip2=1.0.6=h14c3975_5
- ca-certificates=2018.03.07=0
- certifi=2018.4.16=py36_0
- cffi=1.11.5=py36h9745a5d_0
- chardet=3.0.4=py36h0f667ec_1
- click=6.7=py36h5253387_0
- cloudpickle=0.5.3=py36_0
- colorcet=1.0.0=py36_0
- cryptography=2.2.2=py36h14c3975_0
- cudatoolkit=9.0=h13b8566_0
- cudnn=7.1.2=cuda9.0_0
- cupti=9.0.176=0
- cycler=0.10.0=py36h93f1223_0
- cython=0.28.2=py36h14c3975_0
- cytoolz=0.9.0.1=py36h14c3975_0
- dask=0.17.5=py36_0
- dask-core=0.17.5=py36_0
- datashader=0.6.5=py36_0
- datashape=0.5.4=py36h3ad6b5c_0
- dbus=1.13.2=h714fa37_1
- decorator=4.3.0=py36_0
- distributed=1.21.8=py36_0
- entrypoints=0.2.3=py36h1aec115_2
- expat=2.2.5=he0dffb1_0
- fontconfig=2.12.6=h49f89f6_0
- freetype=2.8=hab7d2ae_1
- gast=0.2.0=py36_0
- glib=2.56.1=h000015b_0
- gmp=6.1.2=h6c8ec71_1
- grpcio=1.11.0=py36hf484d3e_0
- gst-plugins-base=1.14.0=hbbd80ab_1
- gstreamer=1.14.0=hb453b48_1
- h5py=2.7.1=py36h3585f63_0
- hdf5=1.10.1=h9caa474_1
- heapdict=1.0.0=py36_2
- html5lib=0.9999999=py36_0
- icu=58.2=h9c2bf20_1
- idna=2.6=py36h82fb2a8_1
- imageio=2.3.0=py36_0
- inflection=0.3.1=py36_0
- intel-openmp=2018.0.0=8
- ipykernel=4.8.2=py36_0
- ipython=6.4.0=py36_0
- ipython_genutils=0.2.0=py36hb52b0d5_0
- ipywidgets=7.2.1=py36_0
- jedi=0.12.0=py36_1
- jinja2=2.10=py36ha16c418_0
- jpeg=9b=h024ee3a_2
- jsonschema=2.6.0=py36h006f8b5_0
- jupyter=1.0.0=py36_4
- jupyter_client=5.2.3=py36_0
- jupyter_console=5.2.0=py36he59e554_1
- jupyter_core=4.4.0=py36h7c827e3_0
- jupyterlab=0.32.1=py36_0
- jupyterlab_launcher=0.10.5=py36_0
- keras=2.1.5=py36_0
- kiwisolver=1.0.1=py36h764f252_0
- libedit=3.1.20170329=h6b74fdf_2
- libffi=3.2.1=hd88cf55_4
- libgcc-ng=7.2.0=hdf63c60_3
- libgfortran-ng=7.2.0=hdf63c60_3
- libpng=1.6.34=hb9fc6fc_0
- libprotobuf=3.5.2=h6f1eeef_0
- libsodium=1.0.16=h1bed415_0
- libstdcxx-ng=7.2.0=hdf63c60_3
- libtiff=4.0.9=he85c1e1_1
- libxcb=1.13=h1bed415_1
- libxml2=2.9.8=h26e45fe_1
- llvmlite=0.23.1=py36hdbcaa40_0
- locket=0.2.0=py36h787c0ad_1
- lzo=2.10=h49e0be7_2
- markdown=2.6.11=py36_0
- markupsafe=1.0=py36hd9260cd_1
- matplotlib=2.2.2=py36h0e671d2_1
- mistune=0.8.3=py36h14c3975_1
- mkl=2018.0.2=1
- mkl_fft=1.0.1=py36h3010b51_0
- mkl_random=1.0.1=py36h629b387_0
- mock=2.0.0=py36h3c5bf6c_0
- more-itertools=4.1.0=py36_0
- msgpack-python=0.5.6=py36h6bb024c_0
- multipledispatch=0.5.0=py36_0
- nbconvert=5.3.1=py36hb41ffb7_0
- nbformat=4.4.0=py36h31c9010_0
- ncurses=6.1=hf484d3e_0
- networkx=2.1=py36_0
- nose=1.3.7=py36hcdf7029_2
- notebook=5.5.0=py36_0
- numba=0.38.0=py36h637b7d7_0
- numexpr=2.6.5=py36h7bf3b9c_0
- numpy=1.14.3=py36hcd700cb_1
- numpy-base=1.14.3=py36h9be14a7_1
- olefile=0.45.1=py36_0
- openssl=1.0.2o=h20670df_0
- packaging=17.1=py36_0
- pandas=0.23.0=py36h637b7d7_0
- pandoc=1.19.2.1=hea2e7c5_1
- pandocfilters=1.4.2=py36ha6701b7_1
- param=1.6.1=py36_0
- parso=0.2.0=py36_0
- partd=0.3.8=py36h36fd896_0
- patsy=0.5.0=py36_0
- pbr=4.0.3=py36_0
- pcre=8.42=h439df22_0
- pexpect=4.5.0=py36_0
- pickleshare=0.7.4=py36h63277f8_0
- pillow=5.1.0=py36h3deb7b8_0
- pip=10.0.1=py36_0
- plotly=2.6.0=py36_0
- prompt_toolkit=1.0.15=py36h17d85b1_0
- protobuf=3.5.2=py36hf484d3e_0
- psutil=5.4.5=py36h14c3975_0
- ptyprocess=0.5.2=py36h69acd42_0
- pycparser=2.18=py36hf9f622e_1
- pygments=2.2.0=py36h0d3125c_0
- pyopenssl=18.0.0=py36_0
- pyparsing=2.2.0=py36hee85983_1
- pyqt=5.9.2=py36h751905a_0
- pysocks=1.6.8=py36_0
- pytables=3.4.3=py36h02b9ad4_0
- python=3.6.5=hc3d631a_2
- python-dateutil=2.7.3=py36_0
- pytz=2018.4=py36_0
- pywavelets=0.5.2=py36he602eb0_0
- pyyaml=3.12=py36hafb9ca4_1
- pyzmq=17.0.0=py36h14c3975_0
- qt=5.9.5=h7e424d6_0
- qtconsole=4.3.1=py36h8f73b5b_0
- quandl=3.3.0=py36_0
- readline=7.0=ha6073c6_4
- requests=2.18.4=py36he2e5f8d_1
- scikit-image=0.13.1=py36h14c3975_1
- scikit-learn=0.19.1=py36h7aa7ec6_0
- scipy=1.1.0=py36hfc37229_0
- seaborn=0.8.1=py36hfad7ec4_0
- send2trash=1.5.0=py36_0
- setuptools=39.1.0=py36_0
- simplegeneric=0.8.1=py36_2
- sip=4.19.8=py36hf484d3e_0
- six=1.11.0=py36h372c433_1
- snappy=1.1.7=hbae5bb6_3
- sortedcontainers=1.5.10=py36_0
- sqlalchemy=1.2.7=py36h6b74fdf_0
- sqlite=3.23.1=he433501_0
- statsmodels=0.9.0=py36h3010b51_0
- tblib=1.3.2=py36h34cf8b6_0
- tensorboard=1.8.0=py36hf484d3e_0
- tensorflow=1.8.0=hb11d968_0
- tensorflow-base=1.8.0=py36hc1a7637_0
- tensorflow-tensorboard=1.5.1=py36hf484d3e_1
- termcolor=1.1.0=py36_1
- terminado=0.8.1=py36_1
- testpath=0.3.1=py36h8cadb63_0
- tk=8.6.7=hc745277_3
- toolz=0.9.0=py36_0
- tornado=5.0.2=py36_0
- tqdm=4.23.3=py36_0
- traitlets=4.3.2=py36h674d592_0
- urllib3=1.22=py36hbe7ace6_0
- wcwidth=0.1.7=py36hdf4376a_0
- werkzeug=0.14.1=py36_0
- wheel=0.31.1=py36_0
- widgetsnbextension=3.2.1=py36_0
- xarray=0.10.4=py36_0
- xz=5.2.4=h14c3975_4
- yaml=0.1.7=had09818_2
- zeromq=4.2.5=h439df22_0
- zict=0.1.3=py36h3a3bf81_0
- zlib=1.2.11=ha838bed_2
- pip:
  - args==0.1.0
  - chembl-webresource-client==0.9.31
  - clint==0.5.1
  - dill==0.2.7.1
  - easydict==1.7
  - enum34==1.1.6
  - floyd-cli==0.10.31
  - gevent==1.3.1
  - gevent-openssl==1.2
  - greenlet==0.4.13
  - grequests==0.2.0
  - holoviews (/mnt/c/Users/soere/workspace/holoviews)==1.10.4.post10+g8711663
  - ipython-genutils==0.2.0
  - jupyter-client==5.2.3
  - jupyter-console==5.2.0
  - jupyter-core==4.4.0
  - jupyter-dashboards==0.7.0
  - jupyterlab-launcher==0.10.5
  - lightgbm==2.0.11
  - lxml==4.2.1
  - marshmallow==2.15.0
  - mkl-fft==1.0.0
  - mkl-random==1.0.1
  - molvs==0.1.1
  - mytoolbox==0+untagged.3.gde0cad4
  - oauthlib==2.0.6
  - pathlib2==2.3.0
  - prompt-toolkit==1.0.15
  - pyqsar-ML-publication==1.ge51d073.dirty
  - pyteomics==3.4.2
  - raven==6.5.0
  - requests-cache==0.4.13
  - requests-oauthlib==0.8.0
  - requests-toolbelt==0.8.0
  - tables==3.4.3
  - tabulate==0.8.2
  - tweepy==3.5.0
  - unittest2py3k==0.5.1
  - unittest2six==0.0.0
  - versioneer==0.18
  - xgboost==0.7.post3
prefix: /home/swacker/miniconda3/envs/py3

Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

User avatar

binarybits

Posts: 1
Joined: Tue Dec 03, 2019 6:26 pm

Error Creating Conda Virtual Environment

Hi,

I’m trying to install FaceSwap on Windows and I get the following errors:

CondaEnvironmentNotFoundError: Could not find environment: base .
Creating Conda virtual environment…

[Stuff about creating the environment]

CommandNotFoundError: ‘deactivate’
Error creating Conda virtual environment.
Install aborted.

Can anyone suggest what might be wrong here? I’m on Windows 10. I tried installing AnaConda but it said the package was already installed.

Thanks.

-Tim

User avatar

fabiomarques297

Posts: 1
Joined: Sun Jun 14, 2020 5:14 pm

Error Creating Conda Virtual Environment

Post

by fabiomarques297 » Sun Jun 14, 2020 5:19 pm

Im geting this error when i’m trying to instal the faceswap

(check) CPU Supports AVX Instructions
(check) CPU Supports SSE4 Instructions
(check) Completed check for installed applications
(check) Setting up for: amd

Downloading Miniconda3…
Installing Miniconda3. This will take a few minutes…
Miniconda3 installed.
Initializing Conda…
Creating Conda Virtual Environment…
Error Creating Conda Virtual Environment
Install Aborted

can anybody help me please

User avatar

Dwellerz

Posts: 9
Joined: Tue Aug 04, 2020 11:34 pm

User avatar

Dwellerz

Posts: 9
Joined: Tue Aug 04, 2020 11:34 pm

User avatar

torzdf

Posts: 2218
Joined: Fri Jul 12, 2019 12:53 am

Answers: 142

Has thanked: 109 times
Been thanked: 505 times

Re: Error Creating Conda Virtual Environment

Post

by torzdf » Thu Aug 06, 2020 6:57 am

fabiomarques297 wrote: ↑Sun Jun 14, 2020 5:19 pm

Im geting this error when i’m trying to instal the faceswap

(check) CPU Supports AVX Instructions
(check) CPU Supports SSE4 Instructions
(check) Completed check for installed applications
(check) Setting up for: amd

Downloading Miniconda3…
Installing Miniconda3. This will take a few minutes…
Miniconda3 installed.
Initializing Conda…
Creating Conda Virtual Environment…
Error Creating Conda Virtual Environment
Install Aborted

can anybody help me please

Follow these instructions, and let us know if you still have an issue:
app.php/faqpage#f1r1

My word is final

User avatar

Grassone

Posts: 45
Joined: Sun Apr 19, 2020 7:32 pm
Has thanked: 6 times
Been thanked: 2 times

Error Creating Conda virtual environment.

Post

by Grassone » Thu Sep 17, 2020 4:22 pm

Hello:
New PC:

Ryzen 2700x
Ventus GeForce RTX 2700
16G ram
3T hdd

Tried to do ALL the steps listed in app.php/faqpage#f1r1
But no luck:

i am stuck with this error.

NOTE 1
Miniconda seems to be installed fine (it can be successufully uninstalled by WIN 10 app manager)

NOTE 2
I found these exe files:
python.exe
python3.exe
python3.7.exe

in the C:UsersFulvio AMDAppDataLocalMicrosoftWindowsApps directory.

Should I remove them ? Do they hurt ?

PLZ. Help.

User avatar

Grassone

Posts: 45
Joined: Sun Apr 19, 2020 7:32 pm
Has thanked: 6 times
Been thanked: 2 times

Re: Error Creating Conda virtual environment.

Post

by Grassone » Tue Sep 22, 2020 8:55 pm

Interesting… now i have 2 miniconda3 directories…
one in C:fsminiconda3
the second in C:Usersfulvio AMDminiconda3

Faceswap installer detected the existing miniconda3 installation, but apparently cloned it into the usersfulvio AMDminiconda3 directory….

I’ll let you know how it ends…

User avatar

sccsd

Posts: 1
Joined: Thu Apr 15, 2021 4:01 am

An error while installing the Faceswap

Post

by sccsd » Thu Apr 15, 2021 4:10 am

Hello,I m a new handed in this kind of software,so while i am installing the software,an error occured that make me confused,i list all below:

Downloading Miniconda3…..
Installing Miniconda3,This will take a few minutes…
Miniconda3 installed,
Initializing Conda…
Creating Conda Virtual Environment…
Error Creating Conda Virtual Environment
Install Aborted

and though i tried to install Miniconda3 manually,after the installation,i tried again ,but it still didn’t work,shoud i creat the environment myself???But i really don’t know how to deal with it…Thank you!

User avatar

ShrekLuzz

Posts: 1
Joined: Sat May 01, 2021 3:27 pm

Re: An error while installing the Faceswap

Post

by ShrekLuzz » Sat May 01, 2021 3:29 pm

sccsd wrote: ↑Thu Apr 15, 2021 4:10 am

Hello,I m a new handed in this kind of software,so while i am installing the software,an error occured that make me confused,i list all below:

Downloading Miniconda3…..
Installing Miniconda3,This will take a few minutes…
Miniconda3 installed,
Initializing Conda…
Creating Conda Virtual Environment…
Error Creating Conda Virtual Environment
Install Aborted

and though i tried to install Miniconda3 manually,after the installation,i tried again ,but it still didn’t work,shoud i creat the environment myself???But i really don’t know how to deal with it…Thank you!

I got the same issue , hava you fixed it yet ?

Problem Description:

In Anaconda prompt (anaconda3), use the CONDA create command to create a new environment. The error is as follows:

(base) D:OneDriveDesktop>conda create -n my_env python==3.8
Collecting package metadata (current_repodata.json): failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 259, in _load
        raw_repodata_str = fetch_repodata_remote_request(
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 613, in fetch_repodata_remote_request
        raise Response304ContentUnchanged()
    conda.core.subdir_data.Response304ContentUnchanged

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "D:anaconda3libsite-packagescondaexceptions.py", line 1079, in __call__
        return func(*args, **kwargs)
      File "D:anaconda3libsite-packagescondaclimain.py", line 84, in _main
        exit_code = do_call(args, p)
      File "D:anaconda3libsite-packagescondacliconda_argparse.py", line 83, in do_call
        return getattr(module, func_name)(args, parser)
      File "D:anaconda3libsite-packagescondaclimain_create.py", line 41, in execute
        install(args, parser, 'create')
      File "D:anaconda3libsite-packagescondacliinstall.py", line 261, in install
        unlink_link_transaction = solver.solve_for_transaction(
      File "D:anaconda3libsite-packagescondacoresolve.py", line 114, in solve_for_transaction
        unlink_precs, link_precs = self.solve_for_diff(update_modifier, deps_modifier,
      File "D:anaconda3libsite-packagescondacoresolve.py", line 157, in solve_for_diff
        final_precs = self.solve_final_state(update_modifier, deps_modifier, prune, ignore_pinned,
      File "D:anaconda3libsite-packagescondacoresolve.py", line 262, in solve_final_state
        ssc = self._collect_all_metadata(ssc)
      File "D:anaconda3libsite-packagescondacommonio.py", line 88, in decorated
        return f(*args, **kwds)
      File "D:anaconda3libsite-packagescondacoresolve.py", line 425, in _collect_all_metadata
        index, r = self._prepare(prepared_specs)
      File "D:anaconda3libsite-packagescondacoresolve.py", line 1020, in _prepare
        reduced_index = get_reduced_index(self.prefix, self.channels,
      File "D:anaconda3libsite-packagescondacoreindex.py", line 276, in get_reduced_index
        new_records = SubdirData.query_all(spec, channels=channels, subdirs=subdirs,
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 120, in query_all
        result = tuple(concat(executor.map(subdir_query, channel_urls)))
      File "D:anaconda3libconcurrentfutures_base.py", line 611, in result_iterator
        yield fs.pop().result()
      File "D:anaconda3libconcurrentfutures_base.py", line 432, in result
        return self.__get_result()
      File "D:anaconda3libconcurrentfutures_base.py", line 388, in __get_result
        raise self._exception
      File "D:anaconda3libconcurrentfuturesthread.py", line 57, in run
        result = self.fn(*self.args, **self.kwargs)
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 112, in <lambda>
        subdir_query = lambda url: tuple(SubdirData(Channel(url), repodata_fn=repodata_fn).query(
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 125, in query
        self.load()
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 189, in load
        _internal_state = self._load()
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 277, in _load
        _internal_state = self._read_local_repdata(mod_etag_headers.get('_etag'),
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 326, in _read_local_repdata
        _internal_state = self._process_raw_repodata_str(raw_repodata_str)
      File "D:anaconda3libsite-packagescondacoresubdir_data.py", line 364, in _process_raw_repodata_str
        json_obj = json.loads(raw_repodata_str or '{}')
      File "D:anaconda3libjson__init__.py", line 357, in loads
        return _default_decoder.decode(s)
      File "D:anaconda3libjsondecoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "D:anaconda3libjsondecoder.py", line 353, in raw_decode
        obj, end = self.scan_once(s, idx)
    json.decoder.JSONDecodeError: Expecting ',' delimiter: line 420202 column 26 (char 12681108)

`$ D:anaconda3Scriptsconda-script.py create -n my_env python==3.8`

  environment variables:
                 CIO_TEST=<not set>
                CLASSPATH=.;D:Programming EnvironmentJavajava_8libdt.jar;D:Programming
                          EnvironmentJavajava_8libtools.jar;
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=D:anaconda3condabin..Scriptsconda.exe
               CONDA_EXES="D:anaconda3condabin..Scriptsconda.exe"
             CONDA_PREFIX=D:Anaconda3
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=D:anaconda3python.exe
               CONDA_ROOT=D:anaconda3
              CONDA_SHLVL=1
                CUDA_PATH=D:Mx-yolov3CUDAv10.0
           CURL_CA_BUNDLE=<not set>
                 HOMEPATH=UsersMSTIFIY
          NVTOOLSEXT_PATH=C:Program FilesNVIDIA CorporationNvToolsExt
                     PATH=D:anaconda3;D:anaconda3Librarymingw-w64bin;D:anaconda3Libraryu
                          srbin;D:anaconda3Librarybin;D:anaconda3Scripts;D:anaconda3bin;
                          D:Anaconda3;D:Anaconda3Librarymingw-w64bin;D:Anaconda3Libraryu
                          srbin;D:Anaconda3Librarybin;D:Anaconda3Scripts;D:Anaconda3bin;
                          D:anaconda3condabin;D:Mx-yolov3CUDAv10.0bin;D:Mx-yolov3CUDAv10.
                          0libnvvp;C:ProgramDataOracleJavajavapath;C:WINDOWS;C:WINDOWSsy
                          stem32;C:WINDOWSSystem32;C:WINDOWSSystem32Wbem;C:WINDOWSSystem3
                          2WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;D:Lauguage
                          StudingPythonSpider;C:Program Files
                          (x86)GoogleChromeApplicationchromedriver;D:Programming
                          EnvironmentJavajava_8;D:Lauguage
                          StudingAndroidGitGitcmd;D:Programming EnvironmentTesseract-
                          OCR;C:Program Files (x86)Windows Kits8.1Windows Performance
                          Toolkit;C:Program Files (x86)NVIDIA
                          CorporationPhysXCommon;C:Program FilesNVIDIA CorporationNVIDIA
                          NvDLISR;D:Lauguage StudingMatlabruntimewin64;D:Lauguage
                          StudingMatlabbin;D:Lauguage
                          StudingMatlabpolyspacebin;D:Lauguage
                          Studingopencv3.4.0opencvbuildx64vc14bin;D:Lauguage Studingrasp
                          berryputty;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:
                          WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;D
                          :anaconda3envsMx_yolov3Scripts;D:anaconda3envsMx_yolov3;D:Andr
                          oidSDK;platform-tools;D:AndroidSDK;tools;D:Toolscmake-3.21.2-wind
                          ows-x86_64bin;C:WINDOWS;C:WINDOWSsystem32;C:WINDOWSSystem32;C:W
                          INDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WIN
                          DOWSSystem32OpenSSH;D:Programming
                          Environmentpython;D:Fiddler;D:Lauguage Studing鐖櫕PyCharm
                          Community Edition 2019.3.1bin;.;D:Programming
                          EnvironmentpythonScripts;C:Program Files
                          (x86)GoogleChromeApplication;D:Programming
                          EnvironmentJavajava_8bin;D:Programming
                          EnvironmentJavajava_8jrebin;"D:Programming
                          EnvironmentJavajava_8bin;D:Mx-yolov3CUDAv10.0bin;D:Mx-yolov3CU
                          DAv10.0libnvvp;C:ProgramDataOracleJavajavapath;C:WINDOWS;C:WIND
                          OWSsystem32;C:WINDOWSSystem32;C:WINDOWSSystem32Wbem;C:WINDOWSS
                          ystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;D:Lauguage
                          StudingPythonSpider;C:Program Files
                          (x86)GoogleChromeApplicationchromedriver;D:Programming
                          EnvironmentJavajava_8;D:Lauguage
                          StudingAndroidGitGitcmd;D:Programming EnvironmentTesseract-
                          OCR;C:Program Files (x86)Windows Kits8.1Windows Performance
                          Toolkit;C:Program Files (x86)NVIDIA
                          CorporationPhysXCommon;C:Program FilesNVIDIA CorporationNVIDIA
                          NvDLISR;D:Lauguage StudingMatlabruntimewin64;D:Lauguage
                          StudingMatlabbin;D:Lauguage
                          StudingMatlabpolyspacebin;D:Lauguage
                          Studingopencv3.4.0opencvbuildx64vc14bin;D:Lauguage Studingrasp
                          berryputty;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:
                          WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;D
                          :anaconda3envsMx_yolov3Scripts;D:anaconda3envsMx_yolov3;D:Andr
                          oidSDK;platform-tools;D:AndroidSDK;tools;D:Toolscmake-3.21.2-wind
                          ows-x86_64bin;";"D:AndroidSDK;platform-
                          tools;D:AndroidSDK;tools鈥嬧€嬧€嬧€嬧€嬧€嬧€?;D:Programming
                          EnvironmentTesseract-OCR;D:anaconda3;C:UsersMSTIFIYAppDataLocal
                          MicrosoftWindowsApps;D:Lauguage StudingmiktexMiKTeXmiktexbinx64
             PSMODULEPATH=C:Program FilesWindowsPowerShellModules;C:WINDOWSsystem32Windows
                          PowerShellv1.0Modules
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : D:Anaconda3
            shell level : 1
       user config file : C:UsersMSTIFIY.condarc
 populated config files : C:UsersMSTIFIY.condarc
          conda version : 4.9.2
    conda-build version : 3.18.11
         python version : 3.8.3.final.0
       virtual packages : __cuda=10.2=0
                          __win=0=0
                          __archspec=1=x86_64
       base environment : D:anaconda3  (writable)
           channel URLs : https://mirrors.ustc.edu.cn/anaconda/pkgs/main/win-64
                          https://mirrors.ustc.edu.cn/anaconda/pkgs/main/noarch
                          https://mirrors.ustc.edu.cn/anaconda/pkgs/free/win-64
                          https://mirrors.ustc.edu.cn/anaconda/pkgs/free/noarch
                          https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/win-64
                          https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/noarch
          package cache : D:anaconda3pkgs
                          C:UsersMSTIFIY.condapkgs
                          C:UsersMSTIFIYAppDataLocalcondacondapkgs
       envs directories : D:anaconda3envs
                          C:UsersMSTIFIY.condaenvs
                          C:UsersMSTIFIYAppDataLocalcondacondaenvs
               platform : win-64
             user-agent : conda/4.9.2 requests/2.24.0 CPython/3.8.3 Windows/10 Windows/10.0.19041
          administrator : False
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?

[y/N]:

Solution:

Open the .Condarc file:

channels:
  - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
  - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
  - https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
ssl_verify: true

Delete the mirror source of CONDA forge

channels:
  - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
  - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
ssl_verify: true

Create a new environment again. The operation is successful.

To solve Solving environment: failed with initial frozen solve. Retrying with flexible solve You need to install a pip package in an environment so that Just creating a new environment and then activating it will resolve this error.

Contents

  1. How Solving environment: failed with initial frozen solve. Retrying with flexible solve Error Occurs ?
  2. Solution 1: Use env
  3. Solution 2: set channel_priority to false
  4. Solution 3: downgrade conda
  5. Solution 4: update conda
  6. Frequently Asked Questions
  7. Summary

I am using anaconda and I cannot use conda install command It gives me the following error.

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.

Solution 1: Use env

Just create an env and activate that env and then do the install and your error will be solved. Here is the command line.

To create env Use this command.

conda create --name myenv

Then do Activate env.

conda activate myenv

Now, Your error must be solved.

Solution 2: set channel_priority to false

Just set channel_priority to false.

conda config --set channel_priority false

and my error solved

Solution 3: downgrade conda

Just downgrade conda and Your error will be solved. Just use this command.

conda config --set allow_conda_downgrades true

Then,

conda install conda=4.6.14

Solution 4: update conda

If the above 3 Solutions are not working Then Just try to update your Conda by running this command in your terminal.

conda update --all --yes

Now, Your error must be solved.

Frequently Asked Questions

  1. How To Solve Solving environment: failed with initial frozen solve. Retrying with flexible solve Error ?

    To Solve Solving environment: failed with initial frozen solve. Retrying with flexible solve Error Just create an env and activate that env and then do the install and your error will be solved. Here is commandline. To create env Use this command: conda create –name myenv Then do Activate env: conda activate myenv Now, Your error must be solved. Second solution is Just set channel_priority to false: conda config –set channel_priority false and my error solved.

  2. Solving environment: failed with initial frozen solve. Retrying with flexible solve

    To Solve Solving environment: failed with initial frozen solve. Retrying with flexible solve Error Just create an env and activate that env and then do the install and your error will be solved. Here is commandline. To create env Use this command: conda create –name myenv Then do Activate env: conda activate myenv Now, Your error must be solved. Second solution is Just set channel_priority to false: conda config –set channel_priority false and my error solved.

Summary

Installing conda in a new environment, setting channel_priority to false, and Downgrading conda will resolve this error. Comment below which solution worked for you.

Also, Read

  • NotImplementedError: Cannot convert a symbolic Tensor (2nd_target:0) to a numpy array
  • How to Remove Conda environment in Python?
  • How to check the Python and Anaconda Version
  • CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/a naconda/win-64/repodata.json

Table of Contents
Hide
  1. What is Solving environment: failed with initial frozen solve. retrying with flexible solve?
  2. How to fix Solving environment: failed with initial frozen solve. retrying with flexible solve?
    1. Solution 1: Create a virtual environment using conda
    2. Solution 2: Set channel_priority to false
    3. Solution 3: Upgrade conda to the latest version
  3. Conclusion

The Solving environment: failed with initial frozen solve. retrying with flexible solve occurs if you try to download any package that already exists and it breaks the anaconda environment.

In this tutorial, we will take a look at what is “Solving environment: failed with initial frozen solve. retrying with flexible solve error” and how to resolve this issue.

If we are working on multiple Python projects, the best way to separate concerns of packages or libraries is by creating virtual environments else you will face the below error while installing packages.

(base) [localhost ~]$ conda --version
conda 4.8.2
(base) [localhost ~]$ conda install -c anaconda requests-kerberos
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.

In Python, when you install a package, it might warn that the package already exists, and it will modify the package by upgrading or downgrading to the relevant version.

Some of the packages would be dependent on other packages, and it might do the changes by upgrading or downgrading them.

Hence to effectively manage the dependencies, each project should have its own virtual environment, and inside that, the packages should be installed and maintained to avoid conflicts.

How to fix Solving environment: failed with initial frozen solve. retrying with flexible solve?

There are multiple ways to fix the error. Let us take a look at each of these solutions in detail.

Solution 1: Create a virtual environment using conda

It is recommended and best practice to have virtual environments for each project to effectively manage the dependencies and packages.

Follow the steps to create and activate the virtual environment using conda.

Step 1: Create a virtual environment using conda

conda create --name myenv

Step 2: Activate the virtual environment

conda activate myenv

Once you have activated the virtual environment, you can install packages inside the virtual environment and manage the dependencies.

Solution 2: Set channel_priority to false

Conda channels are the locations where packages are stored. They serve as the base for hosting and managing packages.

Add channel_priority: false to your .condarc file.

 OR

Run the equivalent command:

conda config --set channel_priority false

By setting channel_priority , conda then sorts the packages as follows:

  1. Sorts the package list from highest to lowest version number.
  2. Sorts tied packages from highest to lowest channel priority.
  3. Sorts tied packages from the highest to the lowest build number.

Solution 3: Upgrade conda to the latest version

Another alternative is to upgrade the conda to the latest version by running the below command.

conda update --all --yes

Once the update is finished, you should be able to install the packages successfully.

conda install -c spyder-ide spyder-unittest

Conclusion

If we do not maintain the virtual environments while developing Python projects then you will get  Solving environment: failed with initial frozen solve. retrying with flexible solve error while installing the packages and managing the dependencies.

We can resolve this issue by creating a separate virtual environments for each projects using conda and installing the packages inside the virtual environment.

Avatar Of Srinivas Ramakrishna

Srinivas Ramakrishna is a Solution Architect and has 14+ Years of Experience in the Software Industry. He has published many articles on Medium, Hackernoon, dev.to and solved many problems in StackOverflow. He has core expertise in various technologies such as Microsoft .NET Core, Python, Node.JS, JavaScript, Cloud (Azure), RDBMS (MSSQL), React, Powershell, etc.

Sign Up for Our Newsletters

Subscribe to get notified of the latest articles. We will never spam you. Be a part of our ever-growing community.

By checking this box, you confirm that you have read and are agreeing to our terms of use regarding the storage of the data submitted through this form.

Понравилась статья? Поделить с друзьями:
  • Conan exiles ошибка появления предметов
  • Conan exiles ошибка идентификации
  • Conan exiles ошибка ue4
  • Conan exiles ошибка serialization error action needed
  • Conan exiles ошибка pak file corrupt