gurobi的pycharm下载和操作小案例(不使用anaconda)以及The setup.py installation method has been removed的解决办法

gurobi下载

步骤1:下载gurobi

步骤2:添加License.lic

  • license文件打开步骤见下面的方式
    在这里插入图片描述
  • 也可以直接打开文档 http://www.gurobi.cn/NewsView1.Asp?id=4,可以使用学校校园网和校园邮箱获取license.lic或者使用下面的方式获取,注意手写申请表中的个人签名并进行扫描不能直接Pdf不然个人签名没办法记录。
    在这里插入图片描述

步骤3:激活license
在这里插入图片描述
在这里插入图片描述

步骤4:配置gurobi的环境
在这里插入图片描述
在这里插入图片描述
不使用powershell使用cmd也是可以的,再输入下面的代码块

Python setup.py install

在这里插入图片描述
然而,我出现了问题 The setup.py installation method has been removed, gurobipy should be installed using pip or conda. Please see https://support.gurobi.com/hc/en-us/articles/360044290292 for further information.,我的解决办法是在terminal终端下载gurobipyhttps://support.gurobi.com/hc/en-us/articles/360044290292-How-do-I-install-Gurobi-for-Python

Gurobi has updated its installation method, and you can no longer use setup.py for installation. Instead, you should use pip or conda to install the gurobipy package. Here are the steps you can follow to install Gurobi using these methods:

Using pip

  1. Ensure you have Python and pip installed:

    • You can check if Python is installed by running python --version or python3 --version
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值