安装方法反正大致就两种,下载后安装和直接安装。
一、直接安装
首先直接安装的命令(以pocketsphinx为例)(最后一个似乎是国外源,用的时候有时候会出现10054,主要还是前两个)。
pip install pocketsphinx
pip install pocketsphinx -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
pip install pocketsphinx -i https://www.lfd.uci.edu/~gohlke/pythonlibs/ --trusted-host www.lfd.uci.edu
报错如下。
C:\Users\HUAWEI\AppData\Local\Programs\Python\Python39\Scripts>pip install pocketsphinx -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting pocketsphinx
Downloading http://pypi.doubanio.com/packages/cd/4a/adea55f189a81aed88efa0b0e1d25628e5ed22622ab9174bf696dd4f9474/pocketsphinx-0.1.15.tar.gz (29.1 MB)
---------------------------------------- 29.1/29.1 MB 3.6 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pocketsphinx
B