0. 以下为一步步自己摸索的成功安装过程
1. 安装 spleeter
注:anaconda 的虚拟环境
conda install spleeter
太慢
pip install spleeter
下载卡住
(tensorflow) Robin-macbook-pro:~ robin$ pip install spleeter
Collecting spleeter
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', ConnectionResetError(54, 'Connection reset by peer'))': /packages/de/f6/5e0cab1051d97f56d32c69b3e9bb9e9d90ec68598ee83c7dee7b44106bd0/spleeter-2.3.1-py3-none-any.whl
Downloading spleeter-2.3.1-py3-none-any.whl (51 kB)
|████████████████████████████████| 51 kB 22 kB/s
Collecting tensorflow==2.5.0
Downloading tensorflow-2.5.0-cp36-cp36m-macosx_10_11_x86_64.whl (195.6 MB)
|▎ | 1.9 MB 4.2 kB/s eta 12:41:28ERROR: Exception:
Traceback (most recent call last):
所以自己去下载whl文件tensorflow-2.5.0-cp36-cp36m-macosx_10_11_x86_64.whl
再安装
点击下载 tensorflow 2.5.0
复制进行搜索,右键下载:
找到whl文件存放位置(我用的是anaconda虚拟环境,放在site-packages
文件夹下面),
使用pip命令下载
pip install /Users/robin/software/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow-2.5.0-cp36-cp36m-macosx_10_11_x86_64.whl
尝试第二次后成功:
(tensorflow) Robin-macbook-pro:~ robin$ pip install /Users/robin/software/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow-2.5.0-cp36-cp36m-macosx_10_11_x86_64.whl
Processing ./software/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow-2.5.0-cp36-cp36m-macosx_10_11_x86_64.whl
Collecting h5py~=3.1.0
Downloading h5py-3.1.0-cp36-cp36m-macosx_10_9_x86_64.whl (2.9 MB)
|████████████████████████████████| 2.9 MB 961 kB/s
Requirement already satisfied: wheel~=0.35 in ./software/anaconda3/envs/tensorflow/lib/python3.6/site-packages (from tensorflow==2.5.0) (0.37.0)
Collecting opt-einsum~=3.3.0
Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)
|████████████████████████████████| 65 kB 1.5 MB/s
Collecting six~=1.15.0
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting gast==0.4.0
Downloading gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting tensorflow-estimator<2.6.0,>=2.5.0rc0
Downloading tensorflow_estimator-2.5.0-py2.py3-none-any.whl (462 kB)
|████████████████████████████████| 462 kB 1.5 MB/s
Collecting wrapt~=1.12.1
Downloading wrapt-1.12.1.tar.gz (27 kB)
Preparing metadata (setup.py) ... done
Collecting typing-extensions~=3.7.4
Downloading typing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
Collecting flatbuffers~=1.12.0
Downloading flatbuffers-1.12-py2.py3-none-any.whl (15 kB)
Collecting protobuf>=3.9.2
Downloading protobuf-3.19.6-cp36-cp36m-macosx_10_9_x86_64.whl (