anaconda에 구르비 설치
2997 단어 박사 생활
Before we begin, we should note that Anaconda isn't your only choice in Python distributions and/or IDEs. Popular alternatives include Canopy, Eric, iep, PyCharm, and PyDev. We won't be covering the details of installing these other options for use with Gurobi, but the Anaconda instructions that follow should provide a good outline for the steps involved. We've found that Anaconda provides a nice balance between power and complexity, but we realize that people may look for different things in their Python environments.
You will also find instructions for installing Anaconda Python at the Get Anaconda page on our website.
Step 1: Download and Install Anaconda
The first step is to download and install Anaconda. You can find detailed instructions here. Be sure to check the box Add Anaconda to my PATH environment variable when prompted during the installation process. Otherwise, Step 2 may not work.
Gurobi supports the 64-bit versions of Python 2.7, 3.6, and 3.7. Click on the download button for the version you want. Once the download has been completed, double click on the downloaded .pkg file and follow the installation instructions.
Once the install is complete, and once you close your current terminal and open a new one, typing python in your terminal window should invoke the Anaconda Python interpreter:
>python Python 2.7.15 |Anaconda, Inc.|... ...
Type quit() in Python to return to the terminal.
Step 2: Install Gurobi into Anaconda
The next step is to install the Gurobi package into Anaconda. You do this by first adding the Gurobi channel to your Anaconda channels and then installing the
gurobi
package from this channel. From a terminal window issue the following command to add the Gurobi channel to your default search list
conda config
--
add channels http://conda.anaconda.org/gurobi Now issue the following command to install the Gurobi package
conda install gurobi
You can remove the Gurobi package at any time by issuing the command
conda remove gurobi
Step 3: Install a Gurobi License The third step is to install a Gurobi license (if you haven't already done so).
You are now ready to use Gurobi from within Anaconda. Your next step is to launch either theSpyder IDE or Jupyter.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
anaconda에 구르비 설치This section guides you through the steps involved in installing Anaconda, a widely-used Python platform that includes a...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.