For my College project, i tried installing pyqt with command conda install pyqt=4 but it shows error as shown below (even this error comes after solving environment for few minutes).
I am new to these stuffs, can anyone please help me over this!
(tensorflow_cpu) F:\BE project\TensorFlow\addons\labelImg>conda install pyqt=4
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- py-opencv
- pyqt=4
Use "conda info <package>" to see the dependencies for each package.
The problem is that py-opencv requires python 3.6 or above where as pyqt=4 requires python2.7. Hence there will be a conflict between these two packages.
To avoid this conflict and use both the packages together, follow the below steps. Note that here the pyqt version will get upgrade to 5.9.2
Commands:
Create a new conda environment to avoid package mismatches.
conda create -n pyqt python=3.6
Here pyqt is the conda environment name
Activate the environment:
activate pyqt
Install py-opencv
conda install -c anaconda py-opencv
Install pyqt package:
conda install -c alges pyqt
While executing this step, pyqt version will be 5.9.2
Now you will be able to use both the packages with python3.6
Related
I have installed Anaconda from scratch and then installed pyomo, which worked.
When I try to install pyomo.extra, it runs about 1/2 hour and then fails.
I had tried:
conda install -c conda-forge pyomo.extras
conda install -c "conda-forge/label/cf201901" pyomo.extras
conda install -c "conda-forge/label/cf202003" pyomo.extras
as recommended on https://anaconda.org/conda-forge/pyomo.extras
and also
conda config --add channels conda-forge
conda install pyomo.extras
subsequently checking with
conda search pyomo.extras --channel conda-forge
as recommended on https://github.com/conda-forge/pyomo.extras-feedstock
indicated that pyomo.extra isn't installed.
here is the generated output.
(base) PS C:\WINDOWS\system32> conda install pyomo.extras
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.
Examining conflict for pyomo.extras: 75%|███████████████████████████████████▎ | 3/4 [00:03<00:01, 1.15s/it]\failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pyomo.extras -> python[version='2.7.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|3.4.*']
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.
The following specifications were found to be incompatible with your system:
- feature:/win-64::__win==0=0
- feature:|#/win-64::__win==0=0
- pyomo.extras -> ipython -> __osx
- pyomo.extras -> ipython -> __win
Your installed version is: 0
(base) PS C:\WINDOWS\system32> conda search pyomo.extras --channel conda-forge
Loading channels: -
(base) PS C:\WINDOWS\system32>
Questions:
what might be the reason why installation of pyomo.extra fails?
what alternatives for installing pyomo.extra can be recommende?
The package is only available for Python 2.7, 3.6, and 3.7, but your target environment currently has Python 3.9. Conda will not change the Python version in-place because it entails changing pretty much every package in the environment. Instead, try creating a new environment with a compatible Python version.
## include any other packages now
conda create --name foo python=3.7 pyomo pyomo.extras
Why only old versions? The feedstock repository has been failing to build updated versions since Python 3.8 and no maintainers have stepped in to fix it. If you would like to see updated versions built, then drop an Issue on the feedstock or, if you feel comfortable trying to fix it, send a Pull Request. The squeaky wheel get's the grease!
I have a conda enviroment called Vik. One of the packages installed is TBB (tbb=2018.0.5). I want to upgrade to version 2019.5 or later because my code returns this warning. NumbaWarning: The TBB threading layer requires TBB version 2019.5 or later
Thus, I went on and installed the latest TBB (at least this is what I believe). I havent kept the original message log but It looked normal to me. I am under the impression that the package was successfully installed. When I try to install it again this is what I get
(base) C:\Windows\system32>conda activate Vik
(Vik) C:\Windows\system32>conda install -c conda-forge tbb
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
but it appears that i am still calling the old version 2018.0.5. The numba warning that I need to upgrade tbb is still there when I run my application and conda env export -n Vik > environment.yml generates the following list. At the bottom of the list below you can clearly see that the package hasnt been updated. Note that the package doesnt appear under the pip section of the environment.yml shown below, hence it should be a conda package.
What am I doing wrong?
name: Vik
channels:
- anaconda
- conda-forge
- defaults
dependencies:
- anyio=3.2.0=py37h03978a9_0
- argon2-cffi=20.1.0=py37he774522_1
- async_generator=1.10=py37h28b3542_0
- attrs=21.2.0=pyhd3eb1b0_0
- babel=2.9.1=pyh44b312d_0
- backcall=0.2.0=py_0
.....
.....
.....
- sqlite=3.35.3=h2bbff1b_0
- tbb=2018.0.5=he980bc4_0
- terminado=0.9.1=py37_0
The conda install -c conda-forge tbb directive translates to the imperative
With the channel conda-forge prioritized, ensure that the currently activated environment has some version of tbb installed.
Since tbb is already installed, that directive is already satisfied.
If you want a newer version, either use conda update -c conda-forge tbb or specify a version, e.g., conda install -c conda-forge tbb=2021.
I was trying to install PyQt5 in windows 10 from anaconda prompt.But I found following error:
(base) C:\WINDOWS\system32>conda install -c dsdale24 pyqt5
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- pyqt5
- zstd
Use "conda info <package>" to see the dependencies for each package.
I uninstalled anaconda and installed again. But same issue. Could you please suggest a workaround.
Anaconda\Scripts> conda install -c anaconda pyqt
I am new to Linux and trying to install Python 3.6 using Anaconda, given the instructions here.
When I run conda install python==3.6, I get the following:
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in conflict:
- jupyter_contrib_nbextensions -> jupyter_nbextensions_configurator[version='>=0.2.8'] -> python=3.5
- python==3.6
Use "conda info <package>" to see the dependencies for each package.
How do I fix this error? I already have Python 3.5 and I'd like to upgrade to 3.6 .
This seems similar to another question (if you are trying to update an already installed version of anaconda)
One option is to update anaconda using
conda update --all
For more on this look to: How do I update Anaconda?
Also, if you are entering
conda install python==$pythonversion$
It should be
conda install python==3.6
If you are going to Python 3.6 (just checking)
When I was trying to install a module 'pymc' through anaconda environments, it showed the error message as follows:
UnsatisfiableError: The following specifications were found to be in
conflict:
blaze -> pyyaml -> python[version='>=2.7,<2.8.0a0'] -> vc=9
blaze -> pyyaml -> yaml -> *[track_features=vc9]
pymc Use "conda info " to see the dependencies for each package.
I am using Python 2.7.14, and I installed anaconda 1.6.9 on a Windows. I am new to Python. I first tried to use cmd to install the module pymc and I ran into a lot of problems such as the requirement for install g77 compiler on windows. After I got the compiler from MinGW and also installed the Microsoft Visual C++ Compiler for Python, I still cannot install the module because there came new errors. That is when I found there is pymc module listed in anaconda environment that I can add manually, but it showed this conflict error.
I do not know whether the conflict comes from all those other stuff I installed above or not. Please HELP! Thanks!
Create a new conda environment for Python 2.7:
conda create -n my_pymc_env python=2.7
Activate it:
conda activate my_pymc_env
Alternatively, for older conda versions on Windows:
activate my_pymc_env
on Unix (including Mac OS X):
source activate my_pymc_env
Once activated, install your packages:
conda install pymc blaze
If you still get this message, install the Anaconda client:
conda install anaconda-client
and search for your package:
anaconda search mypackage
Look for a channel that has the right version for you and install:
conda install -c channel_with_right_version mypackage