PackagesNotFoundError:当前频道不提供以下软件包:-Anaconda提示中的cylp

时间:2020-06-17 13:14:41

标签: python anaconda

由于我正在使用COIN-为此,我需要安装以下软件包。optimizerCBC。

1.CVXPY 2.CVXOPT 3名 4.PANDAS

已使用以下命令正确安装了CVXPY,CVXOPT,PANDAS。

conda install cvxpy
conda install cvxopt
conda install pandas

但是在同时安装conda install cylpconda install -c conda-forge cylp的“ cylp”时,出现如下错误。

收集包元数据(current_repodata.json):已完成 求解环境:最初的冻结求解失败。使用灵活的解决方法重试。 收集包元数据(repodata.json):完成 求解环境:最初的冻结求解失败。使用灵活的求解重试。

PackagesNotFoundError: The following packages are not available from current channels:

  - cylp

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

尝试了许多解决方案,但未获得预期的收益,请帮助我解决此问题。预先感谢。

Anaconda版本-2020.02 conda版本-conda 4.8.3 python版本-Python 3.8.3 点子版本-点子19.1.1

并尝试使用pip install cylp,但出现如下错误。

Collecting cylp
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/cylp/
  Using cached https://files.pythonhosted.org/packages/aa/d7/3aa3a66afa7b21b1794078c3d9d88dfad909990b1b6a1051707ea69d2e91/cylp-0.91.0.tar.gz
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "C:\Users\sxp8778\AppData\Local\Temp\pip-install-tms10nif\cylp\setup.py", line 58, in get_libs
        flags = (check_output(['pkg-config', '--libs', 'cbc'])
      File "C:\ProgramData\Anaconda3\envs\fxbenv\lib\subprocess.py", line 356, in check_output
        **kwargs).stdout
      File "C:\ProgramData\Anaconda3\envs\fxbenv\lib\subprocess.py", line 423, in run
        with Popen(*popenargs, **kwargs) as process:
      File "C:\ProgramData\Anaconda3\envs\fxbenv\lib\subprocess.py", line 729, in __init__
        restore_signals, start_new_session)
      File "C:\ProgramData\Anaconda3\envs\fxbenv\lib\subprocess.py", line 1017, in _execute_child
        startupinfo)
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\sxp8778\AppData\Local\Temp\pip-install-tms10nif\cylp\setup.py", line 114, in <module>
        libs, libDirs, incDirs = get_libs()
      File "C:\Users\sxp8778\AppData\Local\Temp\pip-install-tms10nif\cylp\setup.py", line 94, in get_libs
        ''')
    Exception:
                Could not find location of COIN installation.
                Please ensure that either
                * COIN_INSTALL_DIR is set to the location of the installation,
                * PKG_CONFIG_PATH points to the location of the .pc files, or
                * The cbc executable is in your executable path and is installed
                at the same location as the libraries.

    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\sxp8778\AppData\Local\Temp\pip-install-tms10nif\cylp\

谢谢

0 个答案:

没有答案