Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors such as: 'Solving environment: failed with initial frozen solve. Retrying with flexible solve' & 'unittest' tab

I am working with spyder - python. I want to test my codes. I have followed the pip install spyder-unittest and pip install pytest. I have restarted the kernel and restarted my MAC as well. Yet, Unit Testing tab does not appear. Even when I drop down Run cannot find the Run Unit test. Does someone know how to do this?

like image 213
GaB Avatar asked Feb 19 '20 12:02

GaB


2 Answers

So, I solved the issue by running the command:

conda config --set channel_priority false.

And then proceeded with the unittest download with the command run:

conda install -c spyder-ide spyder-unittest.

The first command run conda config --set channel_priority false may solve other issues such as:

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

like image 189
GaB Avatar answered Sep 20 '22 22:09

GaB


I solved a similar problem by doing the following:

conda update --all --yes
conda install -c spyder-ide spyder-unittest
like image 42
Rosario Scavo Avatar answered Sep 17 '22 22:09

Rosario Scavo