python package安装包 conda_conda安装包

我们一般安装第三方包(pulp)会通过cmd命令: conda install pulp

但是今天安装pulp包的时候出现下面的问题:

C:\Users\81584>conda install pulp

Fetching package metadata .............

PackageNotFoundError: Packages missing in current channels:

- pulp

We have searched for the packages in the following channels:

- https://repo.continuum.io/pkgs/main/win-64

- https://repo.continuum.io/pkgs/main/noarch

- https://repo.continuum.io/pkgs/free/win-64

- https://repo.continuum.io/pkgs/free/noarch

- https://repo.continuum.io/pkgs/r/win-64

- https://repo.continuum.io/pkgs/r/noarch

- https://repo.continuum.io/pkgs/pro/win-64

- https://repo.continuum.io/pkgs/pro/noarch

- https://repo.continuum.io/pkgs/msys2/win-64

- https://repo.continuum.io/pkgs/msys2/noarch

一开始我没找到解决方法,上网查阅之后可以按照以下方法进行:

(1)、执行  anaconda search -t conda pulp

出现如下东西:

C:\Users\81584>anaconda search -t conda pulp

Using Anaconda API: https://api.anaconda.org

Run ‘anaconda show ‘ to get more details:

Packages:

Name                      |  Version | Package Types   | Platforms

------------------------- |   ------ | --------------- | ---------------

FlyEM/pulp                |    1.6.5 | conda           | linux-64, osx-64

: PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems.

Primer/pulp               |    1.6.1 | conda           | win-64

: \nPuLP is an LP modeler written in python. PuLP can generate MPS or LP files\nand call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear\nproblems.\n

agerlach/pulp             |    1.6.0 | conda           | linux-64, win-32, osx-64, linux-32, win-64

: \nPuLP is an LP modeler written in python. PuLP can generate MPS or LP files\nand call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear\nproblems.\n

auto/pulp-or              |    1.4.6 | conda           | linux-64

: http://pulp-or.googlecode.com/

auto/pulpitum             |    0.2.2 | conda           | linux-64

: https://github.com/requirements/pulpitum

christopherschroeder/pulp |    1.6.0 | conda           | linux-64

: PuLP is an LP modeler written in python. PuLP can generate MPS or LP files\nand call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear\nproblems.

conda-forge/pulp          |    1.6.8 | conda           | linux-64, win-32, win-64, osx-64

: PuLP is an LP modeler written in python. PuLP can generate MPS or LP files

and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems.

desktable/pulp            |    1.5.9 | conda           | linux-64

: \nPuLP is an LP modeler written in python. PuLP can generate MPS or LP files\nand call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear\nproblems.\n

flyem-forge/pulp          |    1.6.5 | conda           | linux-64

: PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems.

huangg/pulp               |    1.6.5 | conda           | linux-64, osx-64

: PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems.

mjliu/pulp                |  1.6.1.1 | conda           | linux-64

: PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems. This version requires pyparsing >= 2.0.1.

picklesRnice/pulp         |    1.5.6 | conda           | osx-64

: PuLP is an LP modeler written in python. PuLP can generate MPS or LP files\nand call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear\nproblems.

pidefrem/pulp             |    1.6.1 | conda           | osx-64

: \nPuLP is an LP modeler written in python. PuLP can generate MPS or LP files\nand call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear\nproblems.\n

psteinberg/pulp           |          | conda           | linux-64

travis/coinor.pulp        |    1.0.4 | conda           | linux-64

: http://www.coin-or.org/PuLP/

yodle_data_science/pulp   |    1.6.1 | conda           | linux-64

Found 16 packages

(2)、执行  anaconda show

如我选择 anaconda show conda-forge/pulp 会出现:

C:\Users\81584>anaconda show conda-forge/pulp

Using Anaconda API: https://api.anaconda.org

Name:    pulp

Summary: PuLP is an LP modeler written in python. PuLP can generate MPS or LP files

and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems.

Access:  public

Package Types:  conda

Versions:

+ 1.6.8

To install this package with conda run:

conda install --channel https://conda.anaconda.org/conda-forge pulp

(3)、执行 conda install --channel https://conda.anaconda.org/conda-forgepulp

这一步是按照上一步给出的显示执行的。

剩下的步骤就按照他的提示来就行了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值