Error installing cvxopt using Conda - python

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

Related

Problems installing Python3.6 using Anaconda

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)

Anaconda - UnsatisfiableError: The following specifications were found to be in conflict

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

tensorflow install with conda conflict - UnsatisfiableError

Tried to install tensorflow using conda and its throwing a spec conflict error. I do not have python 3.5 installed
conda install -c conda-forge tensorflow
Fetching package metadata ...............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- python 3.6*
- tensorflow -> python 3.5*
Use "conda info <package>" to see the dependencies for each package.
python --version
Python 3.6.0 :: Anaconda custom (64-bit)
I cannot seem to run tensorflow on the normal python IDE and it says module not found. So I installed Anaconda and everything seems good except for tensorflow. Any way to install this?
You seem to be installing tensorflow for python3.5 on a python3.6 environment. I would suggest you to create a seperate python environment for tensorflow. You can do it as follows
conda create -n Tensorflow anaconda python=3.5
This will create a anaconda environment called Tensorflow and install all the anaconda packages. You can also specify any other python distribution of your choice. Be sure you download the right tensorflow distribution depending on the python version you choose.
Then activate the newly created anaconda environment as follows
source activate Tensorflow
On windows
activate Tensorflow
This will switch the python environment. Then proceed to installing Tensorflow using pip as follows
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
If you wish to install tensorflow with GPU support, you should install CUDA toolkit and the CUDNNv5.1. More details here

How to install pymatgen for Python 2.7.x and not 3.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.

Install tensorflow windows - python conflict

I'm trying to install tensorflow on a windows 7 machine running anaconda python 2.7.13.
C:\>python -V
Python 2.7.13 :: Anaconda 4.3.1 (64-bit)
I start by :
conda create -n tensorflow python=2.7
This prompts me to proceed, I say yes and it installs several packages without issue (all seem to point to a 2.7 version of python).
Next I use :
conda install -c conda-forge tensorflow
Which gives me this error:
UnsatisfiableError: The following specifications were found to be in conflict:
- python 2.7*
- tensorflow -> python 3.5*
Use "conda info <package>" to see the dependencies for each package.
Any suggestions how to fix this?
EDIT: I also tried this:
C:\>pip3 install --upgrade tensorflow
'pip3' is not recognized as an internal or external command,
operable program or batch file.
Next:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
and got this error message:
tensorflow-1.1.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platf
orm.
Is there a reason you want to use Python 2.7? If you start with:
$ conda create -n tensorflow python=3.6
you should be able to install it how you are trying to, and run the latest release to boot! Otherwise, you might try installing TensorFlow r0.12.1 with pip:
$ source activate tensorflow
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.12.1-cp27-none-linux_x86_64.whl
$ pip install --ignore-installed --upgrade $TF_BINARY_URL
If you need GPU support, replace the export line in the above with:
$ export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-0.12.1-cp27-none-linux_x86_64.whl
I think since TF 1.0.1 came out, pip is the preferred installation method. If I had to guess, they changed the packages available through conda-forge and the newest version does not work with Python 2.7 (or at least that version is not available on conda-forge). I could be wrong, but this should get you there either way.

Categories