尝试 conda 构建 graphviz pypi 包时出现 HTTP 错误

如何解决尝试 conda 构建 graphviz pypi 包时出现 HTTP 错误

我正在尝试从 pypi conda 构建一个 graphviz 包,但我遇到了:

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.
Could not download https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz

这是我正在做的:

  1. conda skeleton pypi graphviz 成功创建骨架。 输出
Using 0.16
Use --version to specify a different version.
Using url https://files.pythonhosted.org/packages/cc/a3/8f49063fee2037892f66f1a4d55da8ba25235e76dc27887f7edf95272154/graphviz-0.16.zip (189 KB) for graphviz.
Downloading graphviz
PyPI URL:  https://files.pythonhosted.org/packages/cc/a3/8f49063fee2037892f66f1a4d55da8ba25235e76dc27887f7edf95272154/graphviz-0.16.zip
Using cached download
Unpacking graphviz...
done
working in /tmp/tmpl8v3p0e8conda_skeleton_graphviz-0.16.zip
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: /home/nitin/miniconda3/envs/jupyter/conda-bld/skeleton_1619126219886/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold


The following NEW packages will be INSTALLED:

    _libgcc_mutex:    0.1-main                
    ca-certificates:  2021.4.13-h06a4308_1    
    certifi:          2020.12.5-py39h06a4308_0
    ld_impl_linux-64: 2.33.1-h53a641e_7       
    libffi:           3.3-he6710b0_2          
    libgcc-ng:        9.1.0-hdf63c60_0        
    libstdcxx-ng:     9.1.0-hdf63c60_0        
    ncurses:          6.2-he6710b0_1          
    openssl:          1.1.1k-h27cfd23_0       
    patch:            2.7.6-h7b6447c_1001     
    pip:              21.0.1-py39h06a4308_0   
    python:           3.9.4-hdb3f193_0        
    pyyaml:           5.4.1-py39h27cfd23_1    
    readline:         8.1-h27cfd23_0          
    setuptools:       52.0.0-py39h06a4308_0   
    sqlite:           3.35.4-hdfb4753_0       
    tk:               8.6.10-hbc83047_0       
    tzdata:           2020f-h52ac0ba_0        
    wheel:            0.36.2-pyhd3eb1b0_0     
    xz:               5.2.5-h7b6447c_0        
    yaml:             0.2.5-h7b6447c_0        
    zlib:             1.2.11-h7b6447c_3       

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Applying patch: /tmp/tmpl8v3p0e8conda_skeleton_graphviz-0.16.zip/pypi-distutils.patch
Applying patch: /tmp/tmpl8v3p0e8conda_skeleton_graphviz-0.16.zip/pypi-distutils.patch with args:
['-Np0','-i','/tmp/tmp2v4dskk_/pypi-distutils.patch.native','--binary']
checking file core.py
Hunk #1 succeeded at 167 with fuzz 2 (offset 1 line).
patching file core.py
Hunk #1 succeeded at 167 with fuzz 2 (offset 1 line).
Writing recipe for graphviz
--dirty flag and --keep-old-work not specified. Removing build/test folder after successful build/test.

INFO:conda_build.config:--dirty flag and --keep-old-work not specified. Removing build/test folder after successful build/test.

INFO conda_build.config:__exit__(855): --dirty flag and --keep-old-work not specified. Removing build/test folder after successful build/test.

  1. 现在我跑了 conda-build graphviz输出错误):
No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.16
WARNING:conda_build.Metadata:No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.16
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Attempting to finalize Metadata for graphviz
INFO:conda_build.Metadata:Attempting to finalize Metadata for graphviz
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
BUILD START: ['graphviz-0.16-py39_0.tar.bz2']
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: /home/nitin/miniconda3/envs/jupyter/conda-bld/graphviz_1619126315280/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold


The following NEW packages will be INSTALLED:

    _libgcc_mutex:    0.1-main                
    ca-certificates:  2021.4.13-h06a4308_1    
    certifi:          2020.12.5-py39h06a4308_0
    ld_impl_linux-64: 2.33.1-h53a641e_7       
    libffi:           3.3-he6710b0_2          
    libgcc-ng:        9.1.0-hdf63c60_0        
    libstdcxx-ng:     9.1.0-hdf63c60_0        
    ncurses:          6.2-he6710b0_1          
    openssl:          1.1.1k-h27cfd23_0       
    pip:              21.0.1-py39h06a4308_0   
    python:           3.9.4-hdb3f193_0        
    readline:         8.1-h27cfd23_0          
    setuptools:       52.0.0-py39h06a4308_0   
    sqlite:           3.35.4-hdfb4753_0       
    tk:               8.6.10-hbc83047_0       
    tzdata:           2020f-h52ac0ba_0        
    wheel:            0.36.2-pyhd3eb1b0_0     
    xz:               5.2.5-h7b6447c_0        
    zlib:             1.2.11-h7b6447c_3       

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
Source cache directory is: /home/nitin/miniconda3/envs/jupyter/conda-bld/src_cache
INFO:conda_build.source:Source cache directory is: /home/nitin/miniconda3/envs/jupyter/conda-bld/src_cache
INFO conda_build.source:download_to_cache(44): Source cache directory is: /home/nitin/miniconda3/envs/jupyter/conda-bld/src_cache
Downloading source to cache: graphviz-0.16_d2d25af1c1.tar.gz
INFO:conda_build.source:Downloading source to cache: graphviz-0.16_d2d25af1c1.tar.gz
INFO conda_build.source:download_to_cache(69): Downloading source to cache: graphviz-0.16_d2d25af1c1.tar.gz
Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz
INFO:conda_build.source:Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz
INFO conda_build.source:download_to_cache(83): Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz
Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz>
Elapsed: 00:01.276866

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.
WARNING:conda_build.source:Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz>
Elapsed: 00:01.276866

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.
WARNING conda_build.source:download_to_cache(87): Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz>
Elapsed: 00:01.276866

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.
Could not download https://pypi.io/packages/source/g/graphviz/graphviz-0.16.tar.gz

到目前为止我尝试过的:

  • 尝试了 conda config --set ssl_verify noconda config --set ssl_verify False - 问题仍然存在
  • 尝试多次运行 conda-build graphviz 命令 - 问题仍然存在

能否请您解释一下我哪里出错了,错误的根源是什么,以及解决方法是什么?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?
Java在半透明框架/面板/组件上重新绘画。
Java“ Class.forName()”和“ Class.forName()。newInstance()”之间有什么区别?
在此环境中不提供编译器。也许是在JRE而不是JDK上运行?
Java用相同的方法在一个类中实现两个接口。哪种接口方法被覆盖?
Java 什么是Runtime.getRuntime()。totalMemory()和freeMemory()?
java.library.path中的java.lang.UnsatisfiedLinkError否*****。dll
JavaFX“位置是必需的。” 即使在同一包装中
Java 导入两个具有相同名称的类。怎么处理?
Java 是否应该在HttpServletResponse.getOutputStream()/。getWriter()上调用.close()?
Java RegEx元字符(。)和普通点?