Conda env创建在Mac OS Mojave上使用environment.yml文件失败

时间:2020-07-14 15:16:44

标签: python-3.x macos pip conda miniconda

我正在尝试使用以下命令在Mac OS Mojave上创建环境:conda env create -f environment_osx.yml

YAML位于

https://github.com/abhishekkrthakur/approachingalmost/blob/master/environment_osx.yml

但是该过程失败,并显示错误“ CondaEnvException:Pip失败” ,是详细的错误。

(base) rdh-mac:approachingalmost-master rdh$ conda env create -f environment_osx.yml 
Collecting package metadata (repodata.json): done
Solving environment: done
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Ran pip subprocess with arguments:                                
['/Users/rdh/opt/miniconda3/envs/ml/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/rdh/Documents/RDHWorkSpace/MACHINELEARNING/AAMLP/approachingalmost-master/condaenv.qo7esqs6.requirements.txt']
Pip subprocess output:

Pip subprocess error:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10d4ae5d0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/absl-py/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10d4a0dd0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/absl-py/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10d527410>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/absl-py/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10d501b90>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/absl-py/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10d522490>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/absl-py/
ERROR: Could not find a version that satisfies the requirement absl-py==0.9.0 (from -r /Users/rdh/Documents/RDHWorkSpace/MACHINELEARNING/AAMLP/approachingalmost-master/condaenv.qo7esqs6.requirements.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for absl-py==0.9.0 (from -r /Users/rdh/Documents/RDHWorkSpace/MACHINELEARNING/AAMLP/approachingalmost-master/condaenv.qo7esqs6.requirements.txt (line 1))


CondaEnvException: Pip failed

(base) rdh-mac:approachingalmost-master rdh$ pip install absl-py==0.9.0
Requirement already satisfied: absl-py==0.9.0 in /Users/rdh/opt/miniconda3/lib/python3.7/site-packages (0.9.0)
Requirement already satisfied: six in /Users/rdh/opt/miniconda3/lib/python3.7/site-packages (from absl-py==0.9.0) (1.15.0)
(base) rdh-mac:approachingalmost-master rdh$ 

有人可以提供一些指示是什么原因吗?

0 个答案:

没有答案