我正在尝试conda
从 pypi 构建一个包,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
这是我正在做的事情:
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.
- 现在我跑了
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 no
-conda config --set ssl_verify False
问题仍然存在 - 尝试
conda-build graphviz
多次运行该命令 - 问题仍然存在
你能解释一下我哪里出错了,错误的根源是什么,解决方法是什么?