Closed solegalli closed 1 year ago
Have the same issue as @Architect0711. Cannot build my images.
first you should run the below commands before your desired package installation
conda create --name myenv conda activate myenv
I've installed latest Anaconda3. a first
conda update conda
went fine. Then stuck again.
conda clean
-idoesn't help me. @joehoeller's trick (create env, activate,
conda config --set ssl_verify False`) doesn't help either.So, I cannot use
conda
at all.One thing to note is that at least now a Ctrl-C does abort (with my previous anaconda2 installation I needed to kill conda with the task manager)
What’s the error output on cmd line?
@joehoeller
Not the one who wrote this exact command, but "stuck" probably means the same as OP's "It hangs in "solving environment" ", which is what also happened to me.
So there's no message at all. You just see "solving environment" and nothing happens, then after a while you come back to the command prompt.
Once again, in my case fixing it was just a matter of not using conda-forge. So it's probably more a matter of channel maintenance than code maintenance?
@Architect0711
Your problem is not related to "can't install anything using conda, it hangs in solving environment". Please be more careful.
UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment
The message is pretty clear: you already have Python in the environment where you're executing the opencv installation command, and its version does not satisfy the compatibility check which is done when one uses conda install
.
This is the perfect example of why to use conda: it enforces the compatibility of every libraries inside an environment, and if this prevents you from installing a new library, then you can easily create a new environment where everything will be OK (see @jay6430 answer).
there's no message at all. You just see "solving environment" and nothing happens, then after a while you come back to the command prompt.
thanks @FrankwaP for stepping in. that's correct.
in my case fixing it was just a matter of not using conda-forge.
I've deleted the channel and tried to install one thing. Seemed indeed to be working fine. Obviously, that isn't much use to me, but could help with solving the problem.
Try conda clean -i
Updating conda and then running the following worked for me:
conda create --name myenv
conda activate myenv
So I've tried some things before being able to download packages without conda
getting stuck and I did what many of you suggest. I'll gather all that in this comment.
conda v4.6.9
by running, in the base
environment, conda install conda=4.6.9
. Not sure if this had something to do with it but is worth mentioning it.-c
option to specify channels. Just go straight with conda install <package>
.conda config --set channel_priority strict
.My guess is that conda
is having issues installing packages other than in ~/anaconda3/envs
. I can't say this will make it work for everyone but at least did it for me.
FWIW, I installed Anaconda with CLI installer and I'm running it on macOS Catalina 10.15.4.
Hope this gets fixed by the team soon. It's a blocker for many of us.
I face same problem that I could not update or download package.
(base) C:\Users\Shungo>conda update conda Collecting package metadata (current_repodata.json): failed
Traceback (most recent call last):
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\cli\main.py", line 84, in _main
exit_code = do_call(args, p)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
return getattr(module, func_name)(args, parser)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\cli\main_update.py", line 20, in execute
install(args, parser, 'update')
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\cli\install.py", line 265, in install
should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 117, in solve_for_transaction
should_retry_solve)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 158, in solve_for_diff
force_remove, should_retry_solve)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 262, in solve_final_state
ssc = self._collect_all_metadata(ssc)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
return f(*args, **kwds)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 415, in _collect_all_metadata
index, r = self._prepare(prepared_specs)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\solve.py", line 1011, in _prepare
self.subdirs, prepared_specs, self._repodata_fn)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\index.py", line 228, in get_reduced_index
repodata_fn=repodata_fn)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 105, in query_all
result = tuple(concat(executor.map(subdir_query, channel_urls)))
File "C:\Users\Shungo\anaconda3\lib\concurrent\futures\_base.py", line 598, in result_iterator
yield fs.pop().result()
File "C:\Users\Shungo\anaconda3\lib\concurrent\futures\_base.py", line 435, in result
return self.__get_result()
File "C:\Users\Shungo\anaconda3\lib\concurrent\futures\_base.py", line 384, in __get_result
raise self._exception
File "C:\Users\Shungo\anaconda3\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 98, in <lambda>
package_ref_or_match_spec))
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 110, in query
self.load()
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 174, in load
_internal_state = self._load()
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 248, in _load
repodata_fn=self.repodata_fn)
File "C:\Users\Shungo\anaconda3\lib\site-packages\conda\core\subdir_data.py", line 485, in fetch_repodata_remote_request
timeout=timeout)
File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\adapters.py", line 412, in send
conn = self.get_connection(request.url, proxies)
File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\adapters.py", line 309, in get_connection
proxy_manager = self.proxy_manager_for(proxy)
File "C:\Users\Shungo\anaconda3\lib\site-packages\requests\adapters.py", line 199, in proxy_manager_for
**proxy_kwargs)
File "C:\Users\Shungo\anaconda3\lib\site-packages\urllib3\poolmanager.py", line 470, in proxy_from_url
return ProxyManager(proxy_url=url, **kw)
File "C:\Users\Shungo\anaconda3\lib\site-packages\urllib3\poolmanager.py", line 420, in __init__
raise ProxySchemeUnknown(proxy.scheme)
urllib3.exceptions.ProxySchemeUnknown: Not supported proxy scheme None
$ C:\Users\Shungo\anaconda3\Scripts\conda-script.py update conda
environment variables:
CIO_TEST=
active environment : base
active env location : C:\Users\Shungo\anaconda3
shell level : 1
user config file : C:\Users\Shungo\.condarc
populated config files : C:\Users\Shungo.condarc conda version : 4.8.2 conda-build version : 3.18.11 python version : 3.7.6.final.0 virtual packages : base environment : C:\Users\Shungo\anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/win-64 https://conda.anaconda.org/conda-forge/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 package cache : C:\Users\Shungo\anaconda3\pkgs C:\Users\Shungo.conda\pkgs C:\Users\Shungo\AppData\Local\conda\conda\pkgs envs directories : C:\Users\Shungo\anaconda3\envs C:\Users\Shungo.conda\envs C:\Users\Shungo\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.18362 administrator : False netrc file : None offline mode : False
If someone know solution, please teach me. Thank you
@alvgaona
Pretty sure it's not point 2 but point 3 that solved your problem: I always create environments yet also had this issue, until I removed "-c conda-forge".
@ShunTono
I face same problem that I could not update or download package.
No you don't since your install doesn't "hang in solving environment" as the post title says. No one here mentions this "urllib3.exceptions.ProxySchemeUnknown" you have.
This solved topic seems relevant: https://github.com/psf/requests/issues/5297 I found it with a "conda urllib3.exceptions.ProxySchemeUnknown" search (just saying so you know what to do next time). Look at "joh-ku" post which has clear instructions.
Thank you for your advice! I will check it.
it can work: conda clean -i
I have issues installing geopandas. I opened an issue on their GitHub but later found out that the issue is not with geopandas. I can't install anything using conda.
I also tried conda clean --all
and the steps mentioned in this post.
Issue: I have tried multiple ways but can't install geopandas package. I tried geopandas install guide, but get output that runs forever. I tried without creating an environment, after creating a new environment, using defaults channel and using conda-forge channel. None worked. I tried removing anaconda completely and reinstalled.
$ conda create -n top
$ conda activate top
$ conda config --env --add channels conda-forge
$ conda config --env --set channel_priority strict
$ conda install python=3 geopandas
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: \
I don't want to use pip install
because it is preferred to use conda install
.
Also I tried installing using Anaconda Navigator following this answer, but the progress bar keeps running saying solving package specifications.
Environment (conda list
):
Details about conda
and system ( conda info
):
Creating a new env worked for me as per jay
conda create --name myenv conda activate myenv
Hi guys. I know I am a little late in the discussion but this worked for me 100% of the time I faced this issue -
Whenever this happened it was unfortunate as I could not get any packages to set up from the navigator anymore. But what I could do is instead open up the Command Prompt from the navigator and install the package using conda-forge and then updating the index, it showed up correctly! For example, to install spacy after this happens, you can open up the command prompt and type -
py conda install -c conda-forge spacy
And this will let you install spacy without any hassle. Then you can update your index in your selected environment and spacy will show up as installed! Done.
@mind-matrix my issues (and I believe most of the others) have always been with the command line.
This issue is a showstopper for me. The easiest way to reproduce the problem without interference from local context:
docker run -it continuumio/anaconda3 conda install -c conda-forge airflow
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.
[…]
When the install process is started in verbose mode (-vv
), you can see how the resolve process is looping
[…]
DEBUG conda.resolve:filter_group(633): conda-package-handling: pruned from 17 -> 1
DEBUG conda.resolve:filter_group(633): conda: pruned from 16 -> 1
DEBUG conda.resolve:filter_group(633): anaconda-navigator: pruned from 8 -> 1
DEBUG conda.resolve:filter_group(633): xmltodict: pruned from 9 -> 1
DEBUG conda.resolve:filter_group(633): conda-verify: pruned from 15 -> 1
DEBUG conda.resolve:filter_group(633): backports.functools_lru_cache: pruned from 6 -> 1
DEBUG conda.resolve:filter_group(633): backports.tempfile: pruned from 3 -> 1
DEBUG conda.resolve:filter_group(633): backports.weakref: pruned from 21 -> 1
DEBUG conda.resolve:filter_group(633): navigator-updater: pruned from 4 -> 1
DEBUG conda.resolve:filter_group(633): _ipyw_jlab_nb_ext_conf: pruned from 7 -> 1
DEBUG conda.resolve:filter_group(633): conda-env: pruned from 4 -> 1
DEBUG conda.resolve:filter_group(633): airflow: pruned from 16 -> 0
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 2
DEBUG conda.resolve:_get_sat_solver_cls(60): Using SAT solver interface 'pycosat'.
DEBUG conda.resolve:gen_clauses(914): gen_clauses returning with clause count: 2263
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 2263
DEBUG conda.resolve:__init__(110): restricting to unmanageable packages: __glibc
DEBUG conda.resolve:gen_clauses(914): gen_clauses returning with clause count: 63232
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63232
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63233
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63232
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63233
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63233
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63235
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63235
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63238
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63238
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63242
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63242
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63247
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63247
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63253
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63253
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63260
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63260
DEBUG conda.common._logic:_run_sat(601): Invoking SAT with clause count: 63268
DEBUG conda.resolve:generate_spec_constraints(922): generate_spec_constraints returning with clause count: 63268
>>CTRL+C<<
^Cfailed with initial frozen solve. Retrying with flexible solve.
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in __call__
return func(*args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
exit_code = do_call(args, p)
File "/opt/conda/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
return getattr(module, func_name)(args, parser)
File "/opt/conda/lib/python3.7/site-packages/conda/cli/main_install.py", line 20, in execute
install(args, parser, 'install')
File "/opt/conda/lib/python3.7/site-packages/conda/cli/install.py", line 265, in install
should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
File "/opt/conda/lib/python3.7/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
should_retry_solve)
File "/opt/conda/lib/python3.7/site-packages/conda/core/solve.py", line 158, in solve_for_diff
force_remove, should_retry_solve)
File "/opt/conda/lib/python3.7/site-packages/conda/core/solve.py", line 275, in solve_final_state
ssc = self._add_specs(ssc)
File "/opt/conda/lib/python3.7/site-packages/conda/core/solve.py", line 558, in _add_specs
(_.to_match_spec() for _ in ssc.prefix_data.iter_records()))), self.specs_to_add
File "/opt/conda/lib/python3.7/site-packages/conda/resolve.py", line 1108, in get_conflicting_specs
explicit_specs=explicit_specs))
File "/opt/conda/lib/python3.7/site-packages/conda/common/logic.py", line 284, in minimal_unsatisfiable_subset
if sat(working_set | {spec, }, True) is None:
File "/opt/conda/lib/python3.7/site-packages/conda/resolve.py", line 1092, in mysat
return C.sat(constraints, add_if)
File "/opt/conda/lib/python3.7/site-packages/conda/common/logic.py", line 226, in sat
solution = self._clauses.sat(additional=additional, includeIf=includeIf, limit=limit)
File "/opt/conda/lib/python3.7/site-packages/conda/common/_logic.py", line 639, in sat
solution = self._run_sat(self.m, limit=limit)
File "/opt/conda/lib/python3.7/site-packages/conda/common/_logic.py", line 602, in _run_sat
solution = self._sat_solver.run(m, limit=limit)
File "/opt/conda/lib/python3.7/site-packages/conda/common/_logic.py", line 156, in run
sat_solution = self.invoke(solver)
File "/opt/conda/lib/python3.7/site-packages/conda/common/_logic.py", line 189, in invoke
sat_solution = next(iter_sol)
KeyboardInterrupt
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/bin/conda", line 13, in <module>
sys.exit(main())
File "/opt/conda/lib/python3.7/site-packages/conda/cli/main.py", line 150, in main
return conda_exception_handler(_main, *args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1371, in conda_exception_handler
return_value = exception_handler(func, *args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1082, in __call__
return self.handle_exception(exc_val, exc_tb)
File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1122, in handle_exception
self._print_conda_exception(CondaError("KeyboardInterrupt"), _format_exc())
File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1133, in _print_conda_exception
print_conda_exception(exc_val, exc_tb)
File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1047, in print_conda_exception
print(_format_exc(exc_val, exc_tb), file=sys.stderr)
File "/opt/conda/lib/python3.7/site-packages/conda/exceptions.py", line 1069, in _format_exc
formatted_exception = format_exception(exc_type, exc_val, exc_tb)
File "/opt/conda/lib/python3.7/traceback.py", line 121, in format_exception
type(value), value, tb, limit=limit).format(chain=chain))
File "/opt/conda/lib/python3.7/traceback.py", line 508, in __init__
capture_locals=capture_locals)
File "/opt/conda/lib/python3.7/traceback.py", line 344, in extract
for f, lineno in frame_gen:
File "/opt/conda/lib/python3.7/traceback.py", line 309, in walk_tb
yield tb.tb_frame, tb.tb_lineno
AttributeError: 'str' object has no attribute 'tb_frame'
With that problem it is not possible to use Anaconda's conda
.
Are you on Windows? Coz https://anaconda.org/conda-forge/airflow shows labels for linux and osx only.
@realknorke I had issues with conda as well and didn't want to use pip to fix the problem. After trying many advice from Conda's GitHub page, I found out that the issue was not being able to find dependencies for the python version I had installed. Creating new environment help but with one more argument for python version.
conda create -n branch-env python=3.7
conda activate branch-env
conda install package-name
Are you on Windows? Coz https://anaconda.org/conda-forge/airflow shows labels for linux and osx only.
Linux. I don't do computer games…
@ahmadsadeed
It seems to work using the env. Its very slow but the installation succeeded. Thanks. :+1:
pip is not an option for various reasons, at least the following:
I was having this issue also. What worked for me was
conda update conda
I fixed the problem by modifying my .condarc
as follows:
channels:
- conda-forge
- defaults
to
channels:
- defaults
- conda-forge
channel_priority: strict
to channel_priority: flexible
This problem confused me today. I clean the .condarc file and rewrite channels to it. Then, sloved it.
After trying many advice from Conda's GitHub page, I found out that the issue was not being able to find dependencies for the python version I had installed. Creating new environment help but with one more argument for python version.
conda create -n branch-env python=3.7 conda activate branch-env conda install package-name
@ahmadsadeed this was the solution that almost worked for me after all (the trying of everything suggested here and dedicated a few hours to this problem). Thanks! More precisely, I didn't need to create a new environment. I just activated an already existing one, which had been created with a specific python version.
HOWEVER, the problem is still not completely gone. I was able to install in this environment. But:
Will this issue ever get resolved? Apparently it has been wasting the time of several humans for some time now :)
Update the Conda VERSION!!! It works!!! I met the same problem. Maybe it is a long time for me not using conda.... I tried the methods mentioned above, but all didn't work. Then I repower my computer, and try to use conda to install an env, it warining me "A new conda version exist." So I update the conda version, then everything goes well~~
@realknorke I had issues with conda as well and didn't want to use pip to fix the problem. After trying many advice from Conda's GitHub page, I found out that the issue was not being able to find dependencies for the python version I had installed. Creating new environment help but with one more argument for python version.
conda create -n branch-env python=3.7 conda activate branch-env conda install package-name
This worked for me!
After 2 years I thought I'd try Anaconda again, and this happens!
First I tried: conda config --set channel_priority strict
Nothing changed, so I unistalled conda and reinstalled it but still, I am not able to install any packages altough using conda instaall -c conda- forge packagename
Herers some outputs: conda config --get channels --add channels 'defaults' # lowest priority --add channels 'conda-forge' # highest priority
conda --version conda 4.8.3
Yesterday everything worked just fine...
Removing the conda-forge channel appears to remove this behavior and it continues to work after add conda-forge.
The following steps worked to resolve the issue.
conda config --remove channels conda-forge
conda config --add channels conda-forge
No other changes were required to fix this on my system.
Thank you @EricThomson and @solegalli for figuring this out!
It does a little longer than normal but it worked for me.
Adding more RAM helps I switched from 0.5 GB to 8GB RAM
I removed and added conda forge
as suggested by @EricThomson and everything is now blazing smooth. 👍
This has been bugging me for weeks. It wasn't until I google 'hangs on solving environment' that I found this thread. Phew. Thanks guys. :)
[Update] This problem usually happens when you try to update your respective operating system Linux/Windows due to improper mismatch linking of anaconda3 resources. You need to update or I would say uninstall and then reinstall anaconda3. Take a deep breath and it will work :)
I had the same issue when adding conda-forge channel and i fixed it by changing channel-priority to "flexible"
conda config --describe channel_priority
conda config --set channel_priority flexible
After thatconda update conda
woked fine again. I hope it helps.
conda config --set channel_priority flexible
worked for me!
It's also worked for me!!
As suggested by @solegalli, I was able to fix it by removing the conda-forge channel. To see if you have conda-forge installed, you can open your configuration file in
.condarc
or just enterconda config --get channels
at your conda prompt. I removed theconda-forge
line from.condarc
, and I'm no longer getting the error. You can also enterconda config --remove channels conda-forge
to remove it.Strangely, after removing the channel, I've added it back and the error has not returned.
Edit: Note I did uninstall anaconda yesterday before trying this today, so there is a chance that was important. But the error did not disappear until I removed the channel.
really interesting, it works perfect! thank you very much
Using conda config --remove channels conda-forge
did not solve the problem for me. What did solve the problem is to uninstall, remove the condarc file, and then reinstalling.
Removed it by using the command:
rm ~/.condarc
I installed mamba: https://github.com/mamba-org/mamba use mamba install whatever and problem was solved for me.
It's a memory problem. Increasing the ram solved the issue for me, not particularly on this situation but had the same solving environment: killed issue that got solved after increasing ram in my virtual machine.
I was running conda install -c conda-forge pyspark
and was ran into this problem. I would cancel the install after the first Solving environment: failed with initial frozen solve. Retrying with flexible solve
. It turned out that I simply had to wait for conda install -c conda-forge pyspark
to keep retrying. Pyspark was installed after the third Solving environment
.
$ conda install -c conda-forge pyspark
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: done
## Package Plan ##
environment location: /home/<my_user>/anaconda3
added / updated specs:
- pyspark
...
I had made several changes before this worked, so I'm not sure how many of them actually helped. I tried to list them as close to the actual order I called them in, but some of them are out of order.
This is a mix of suggestions recommended by anaconda itself, this thread, StackOverflow, and other online sources.
sudo chown 1000:1000 /home/<my_user>/.conda
sudo chown 1000:1000 /home/<my_user>/anaconda3
conda update conda
conda config --add channels conda-forge
conda update -n base -c default conda
sudo chmod 777 -R ~/anaconda3/
sudo chmod 777 -R ~/.conda/
conda config --set channel_priority flexible
I have started using mamba and life has become way way easier. Things that would take 18 hours to resolve (or simply stall out) in conda take 30 minutes using mamba. It's been a game-changer for me.
Anaconda Prompt (Anacond3) (base) C:.\Users\C> conda config --add channels conda-forge . conda-script.py install: error: argument -f/--force: ignored explcit argument 'orge'
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\C\AppData\Local\Temp\pip-install-y1c6x424\fbprophet_56ee60f93302458a87de31986a99e36d\setup.py'"'"'; file='"'"'C:\Users\C\AppData\Local\Temp\pip-install-y1c6x424\fbprophet_56ee60f93302458a87de31986a99e36d\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\C\AppData\Local\Temp\pip-record-xk3t38jt\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\Include\fbprophet' Check the logs for full command output.
I fixed the problem by modifying my
.condarc
as follows:* Changed: ``` channels: - conda-forge - defaults ``` to ``` channels: - defaults - conda-forge ``` * and changed `channel_priority: strict` to `channel_priority: flexible`
Thanks, this works for me!
已收到,稍后就看。
已收到,谢谢。
已收到,稍后就看。
I installed mamba: https://github.com/mamba-org/mamba use mamba install whatever and problem was solved for me.
Whatever I want to install, I got stuck with solving environment
, not able to install mamba
with conda
, is there a manual way to install mamba
?
sorry guys, is there a sort-of definitive fix for this issue?
I actually search thru the whole thread, but I feel like there's a lot of trial and error with nothing proven.
Thanks for pointing me to the right message\fix in the case.
Hello,
I don't seem to be able to install anything using conda. It hangs in "solving environment".
I tried: conda install -c anaconda pip conda install conda-build conda update conda conda install c- anaconda pandas
The all make conda try and resolve the environment until it crashes.
conda config --show-sources
gives:
channels:
I used to have conda-forge there, but I removed it after reading some threads. Either with or without I have the same problems.
I have conda 4.5.2 on windows.
Can you please help?