简体   繁体   English

Conda Build - 创建一个Conda包失败了平台win-64的依赖项

[英]Conda Build - creating a Conda package fails on dependencies for platform win-64

Building my first conda package from a local dir. 从本地目录构建我的第一个conda包。 following instructions from CONDA site. 遵循CONDA网站的指示。 https://conda.io/docs/user-guide/tasks/build-packages/recipe.html https://conda.io/docs/user-guide/tasks/build-packages/recipe.html

i get the following error 我收到以下错误

conda_build.exception.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform win-64: set([u'pywinauto', u'statistics', u'openturns']) conda_build.exception.DependencyNeedsBuildingError:平台win-64的不满意依赖:set([u'pywinauto',u'statistics',u'openturns'])

I tried several items, however it seems the pywinauto, statistics and openturns are causing dependency issues. 我尝试了几个项目,但似乎pywinauto,统计和openturns导致依赖问题。

here is my meta.yml file 这是我的meta.yml文件

package:
  name: apples
  version: "1.0.0"

source:
  path: ../src

target_platform:
  - win-64

requirements:
  build:
    - python
    - setuptools
    - statistics # [win64]
    - pywinauto # [win64]
    - openturns # [win64]
    - matplotlib
    - numpy
    - pandas
    - pip
    - pyodbc
    - pyqt
    - pywin32
    - qt
    - scipy
    - tqdm
    - xlwings

  run:
    - python
    - matplotlib
    - numpy
    - pandas
    - pip
    - pyodbc
    - pyqt
    - pywin32
    - qt
    - scipy
    - tqdm
    - xlwings
    - statistics # [win64]
    - pywinauto # [win64]
    - openturns # [win64]

All of the packages that you use in a conda build have to be available as conda packages in one of the channels in your configuration. 您在conda版本中使用的所有软件包都必须在配置中的一个通道中作为conda软件包提供。 For your case: 对于你的情况:

在 Windows 上安装 python 库时出现问题:CondaHTTPError: HTTP 000 Z52BBC114E425E50E 的连接失败<https: conda.anaconda.org anaconda win-64< div><div id="text_translate"><p> 我想安装 pymongo 库,但出现以下错误:</p><pre> (C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx&gt; conda install -c anaconda pymongo Fetching package metadata... CondaHTTPError: HTTP 000 CONNECTION FAILED for url &lt;https://conda.anaconda.org/a naconda/win-64/repodata.json&gt; Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', por t=443): Max retries exceeded with url: /anaconda/win-64/repodata.json (Caused by ConnectTimeoutError(&lt;urllib3.connection.VerifiedHTTPSConnection object at 0x000 00000054D6128&gt;, 'Connection to conda.anaconda.org timed out. (connect timeout=9. 15)'))",),)</pre><p> 解决的步骤:</p><pre> 1. Update C:\Users\\xxxxxxx\.condarc file with the following: channels: - defaults ssl_verify: false proxy_servers: http: http://sproxy.fg.xxx.com:1000 https: https://sproxy.fg.xxx.com:1000 2. (C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx&gt; conda config --set ssl_verify False</pre><p> 附加信息:</p><pre> (C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx&gt; conda info Current conda install: platform: win-64 conda version: 4.3.27 conda is private: False conda-env version: 4.3.27 conda-build version: 3.0.22 python version: 3.6.2.final.0 requests version: 2.18.4 config file: C:\Users\xxxxxxx\.condarc netrc file: None offline mode: False user-agent: conda/4.3.27 requests/2.18.4 CPython/3.6.2 Windows/7 W indows/6.1.7601 administrator: False</pre><p> 网上的一些帖子只是重新安装了Anaconda,除了全新安装还有其他选择吗?</p></div></https:> - Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/anaconda/win-64

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Conda:当前Win-64频道中缺少程序包 - Conda: Package missing in current win-64 channels 创建GradaLab安装安装conda时,当前win-64通道中的软件包丢失 - Package missing in current win-64 channels when creating conda everonment for installation GrahpLab create 如何解释诸如“feature:/win-64::__cuda==11.1=0”之类的conda包规范? - How to interpret conda package specifications such as "feature:/win-64::__cuda==11.1=0"? Conda 在 win-64 上安装图形工具失败 - Conda install graph-tool failed on win-64 当前win-64频道中缺少依赖关系 - Dependencies missing in current win-64 channels conda 依赖项不会安装在本地包构建中 - conda dependencies do not install on local package build Conda-Build:平台osx-64的不满足依赖性:{“torch [version ='> = 0.4']”} - Conda-Build: Unsatisfiable dependencies for platform osx-64: {“torch[version='>=0.4']”} CondaHTTPError:HTTP 000 url 连接失败<https: conda.anaconda.org plotly win-64 current_repodata.json></https:> - CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/plotly/win-64/current_repodata.json> 在 Windows 上安装 python 库时出现问题:CondaHTTPError: HTTP 000 Z52BBC114E425E50E 的连接失败<https: conda.anaconda.org anaconda win-64< div><div id="text_translate"><p> 我想安装 pymongo 库,但出现以下错误:</p><pre> (C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx&gt; conda install -c anaconda pymongo Fetching package metadata... CondaHTTPError: HTTP 000 CONNECTION FAILED for url &lt;https://conda.anaconda.org/a naconda/win-64/repodata.json&gt; Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', por t=443): Max retries exceeded with url: /anaconda/win-64/repodata.json (Caused by ConnectTimeoutError(&lt;urllib3.connection.VerifiedHTTPSConnection object at 0x000 00000054D6128&gt;, 'Connection to conda.anaconda.org timed out. (connect timeout=9. 15)'))",),)</pre><p> 解决的步骤:</p><pre> 1. Update C:\Users\\xxxxxxx\.condarc file with the following: channels: - defaults ssl_verify: false proxy_servers: http: http://sproxy.fg.xxx.com:1000 https: https://sproxy.fg.xxx.com:1000 2. (C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx&gt; conda config --set ssl_verify False</pre><p> 附加信息:</p><pre> (C:\Users\xxxxxxx\AppData\Local\Continuum\anaconda3) C:\Users\xxxxxxx&gt; conda info Current conda install: platform: win-64 conda version: 4.3.27 conda is private: False conda-env version: 4.3.27 conda-build version: 3.0.22 python version: 3.6.2.final.0 requests version: 2.18.4 config file: C:\Users\xxxxxxx\.condarc netrc file: None offline mode: False user-agent: conda/4.3.27 requests/2.18.4 CPython/3.6.2 Windows/7 W indows/6.1.7601 administrator: False</pre><p> 网上的一些帖子只是重新安装了Anaconda,除了全新安装还有其他选择吗?</p></div></https:> - Issues with installing python libraries on Windows : CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/anaconda/win-64 Conda软件包构建错误 - Conda package build error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM