Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

how to use "from cvxpy import * " in atom(compiler).

I want to import 'cvxpy' in a python program. Does anyone know how I can install this to atom (compiler) ? To import 'numpy' I had to type the following in the command-line: python -m pip install numpy. If I type 'python -m pip install cvxpy' I get an error.

the import line in my program looks like this:

from cvxpy import *

Thanks for any help on this.

It is recommended that to install cvxpy, you do that by using Anaconda

Step 1: Install Anaconda: https://store.continuum.io/cshop/anaconda/ Step 2: Install cvxpy with conda.

conda install -c conda-forge lapack
conda install -c cvxgrp cvxpy

Can also be installed with PIP

pip install cvxpy

1 Answer

thank you for the answer James. I tried the link for installing Anaconda, but the page wouldn't load. When I tried 'pip install cvxpy' in the command line, this didn't work either. Some installation startet, but ended with a big amount of red-colored data that i didn't understand.. Is there any other options?