1. 程式人生 > >conda安裝包

conda安裝包

-o obi generate 顯示 lex ice call pkgs all

  我們一般安裝第三方包(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 <USER/PACKAGE>‘ 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 <USER/PACKAGE>

  如我選擇 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-forge pulp

   這一步是按照上一步給出的顯示執行的。

  剩下的步驟就按照他的提示來就行了

conda安裝包