首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有模块名“语音识别”

没有模块名“语音识别”
EN

Stack Overflow用户
提问于 2022-03-08 17:01:22
回答 1查看 266关注 0票数 0

我已经通过pip安装了SpeechRecognition

代码语言:javascript
复制
pip install SpeechRecognition 

和conda (因为我在conda下使用了virenv )

代码语言:javascript
复制
conda install -c conda-forge speechrecognition

这是我代码的一部分,它是一个用来解决captcha的机器人。

代码语言:javascript
复制
#system libraries
import os
import random
import time
#selenium libraries
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException   
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import 
UnexpectedAlertPresentException
from selenium.webdriver.chrome.options import Options
#recaptcha libraries
import speech_recognition as sr
sr.__version__

import ffmpy
import requests
import urllib
import pydub

#access to google recaptcha demo 
DRIVER_PATH = 'C:/formation/python/recaptcha_Bot/chromedriver.exe'

driver = webdriver.Chrome(executable_path=DRIVER_PATH)
driver.get("https://www.google.com/recaptcha/api2/demo")

但是当我运行代码时,它总是显示错误(not module name "speech-recognition",我想看什么:python/Lib/site-packages/,在anaconda3/Lib/site-packages中找不到SpeechRecognition包,但是当我运行pip列表时,我发现包已经安装了

EN

回答 1

Stack Overflow用户

发布于 2022-03-08 17:09:46

这也发生在我身上(IDK为什么)。

首先,我安装了一个模块名pipwin

代码语言:javascript
复制
pip install pipwin

然后我用--

代码语言:javascript
复制
pipwin install SpeechRecognition
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71398809

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档