Home > other >  The Python mathematical experiment and modeling CVXPY installation perfect strategy
The Python mathematical experiment and modeling CVXPY installation perfect strategy

Time:12-05

"Python mathematical experiments and modeling" when it comes to install CVXPY to download python3.7.2, such as dress high version of Python installed CVXPY, in fact, the problem is the CVXPY before need to come with a bunch of package, the package will be Python version number one to one correspondence with you, if you use "PIP install package name" direct download, will automatically download the latest package, destroy the fit between package and lead to failure, second, may be due to any reason attributable to the u.s.-china science and technology war, fail to open the lot CVXPY official download, here, is to bypass the website CVXPY installation steps:

1) after installation Anaconda, check your python version number: python -v

2) download cvxpy. WHL: on a web page https://www.lfd.uci.edu/~gohlke/pythonlibs/#cvxpy, download the corresponding your microcomputer and python version cvxpy, such as install python 3.7.6 Windows64 bit machine download cvxpy 1.1.1 - cp37 - cp37m - win_amd64. WHL

3) download cvxopt. WHL: https://www.lfd.uci.edu/~gohlke/pythonlibs/#cvxopt (the same download cvxopt? 1.2.5? Cp37? Cp37m? Win_amd64. WHL)

Of the 4) remember "unofficial Windows binaries python extension pack" web page: https://www.lfd.uci.edu/~gohlke/pythonlibs/#cvxpy

5) enter the CMD, putting the current directory into the downloaded file, enter PIP install cvxopt? 1.2.5? Cp37? Cp37m? Win_amd64. WHL mount cvxopt, secondly, rigged cvxpy,

6 if the installation cvxpy failure, pay attention to the missing file error is given, the "unofficial Windows binaries python extension pack" web page download the corresponding package, may be, to layers, make up one by one, if I have their make-up ecos, msgpack and SCS,

7) note: each come with bag and its different versions, people who are missing or the version number is not corresponding, should be in the package dependency to mount,

No. 8) with full package, enter PIP install cvxpy 1.1.1 - cp37 - cp37m - win_amd64. WHL, as with all packages, success!
  • Related