我已经通过pip安装了SpeechRecognition
pip install SpeechRecognition 和conda (因为我在conda下使用了virenv )
conda install -c conda-forge speechrecognition这是我代码的一部分,它是一个用来解决captcha的机器人。
#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列表时,我发现包已经安装了
发布于 2022-03-08 17:09:46
这也发生在我身上(IDK为什么)。
首先,我安装了一个模块名pipwin
pip install pipwin然后我用--
pipwin install SpeechRecognitionhttps://stackoverflow.com/questions/71398809
复制相似问题