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)
Related
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
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
Solving environment: failed
UnsatisfiableError: The following specifications were found to be in
conflict:
- wordcloud
- xlsxwriter Use "conda info " to see the dependencies for each package
.
Initially i get conflict with python 3.4 and python 3.6 so update python to 3.6 but still getting above erroe. Pls help
You can try:
pip install wordcloud
or
conda install -c conda-forge wordcloud
I have tried those options answered above. I think there was some problem with with Anaconda python 3.x versions. I used 2.7 and it worked fine there for me
Using Anaconda Python 3.6 version For Windows you can do it as:
Installation of wordcloud package
download wordcloud‑1.3.2‑cp36‑cp36m‑win_amd64.whl from
http://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud
Copy the file to your current working directory
Open command prompt
python -m pip install wordcloud-1.3.2-cp36-cp36m-win_amd64.whl
You can use according to your python version. Don't need to migrate into another python version.
In console :
conda install -c conda-forge wordcloud
First activate your python environment !
I'm attempting to install cvxopt using Conda (which comes with the Anaconda python distribution), and I received the error message below. Apparently my Anaconda installation is using python 3.6, whereas cvxopt wants python 3.5*. How can I fix this and install cvxopt using Conda?
After typing conda install cvxopt at the Anaconda prompt, the message I received was:
Fetching package metadata ...........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in
conflict:
- cvxopt -> python 3.5*
- python 3.6*
Use "conda info < package >" to see the dependencies for each package.
Here's a screenshot of the error message:
It would appear that cvxopt requires Python 3.5. Easiest solution would be to use conda to create a separate environment for python 3.5 and then install cvxopt (and any other desired python packages). For example...
conda create -n cvxopt-env python=3.5 cvxopt numpy scipy matplotlib jupyter
...depending on your operating system you can then activate this environment using either...
source activate cvxopt-env
...or...
activate cvxopt-env
...you can then switch back to your default python install using...
deactivate
...check out the conda docs for more details. In particular the docs for the conda create command.
try
conda install cvxopt=1.1.8
its the new version and only version having support for python3.6
The pymatgen module is supposed to work for Python 2.7.x or 3. Files for both are available (https://anaconda.org/matsci/pymatgen/files). My Python (sys.version) is 2.7.11.
I tried installing with standard: "conda install -c mastic pymatgen", but it returns an error:
"Fetching package metadata ...........
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- pymatgen -> python 3.6*
- python 3.5*
Use "conda info <package>" to see the dependencies for each package."
It looks like it is trying to install the pymatgen module for Python 3 and I am a version short.
I want to install the 2.7.x compatible version, but can't find instructions on how to force the conda install to do that.
I can't upgrade to 3.6 for other reasons.
Have you tried pip ?
But first install NumPy as they mentioned Here
then use : pip install pymatgen
Restarted from running Miniconda3-latest-MacOSX-x86_64.sh, instead of Miniconda2-latest-MacOSX-x86_64.sh.
Whatever conda you installed, you can create a specific Python 2.7 environment using
conda create --name py27 python=2.7
You should then be able to follow all the steps for Python 2.7 install.