How can i solve this problem..? about Azure Cognitive Search Installing

chrisKo 0 Reputation points
2023-07-24T09:10:18.5733333+00:00

I want to use Cognitive Search.

PS C:\Users\xxx\csrag> azd up

...

(✓) Done: Resource group:--
  (✓) Done: Storage account: --
  (✓) Done: Search service: --
  (✓) Done: App Service plan: --
  (✓) Done: Form recognizer: --
  (✓) Done: Azure OpenAI: --
  (✓) Done: App Service: --
Executing postprovision hook => .\scripts\prepdocs.ps1

Loading azd .env file from current environment

Environment variables set.
Creating python virtual environment "scripts/.venv"
Error: Command '['C:\\Users\\xxx\\csrag\\scripts\\.venv\\Scripts\\python.exe', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Installing dependencies from "requirements.txt" into virtual environment
Start-Process: C:\Users\xxx\csrag\scripts\prepdocs.ps1:35
Line |
  35 |  Start-Process -FilePath $venvPythonPath -ArgumentList "-m pip3 instal …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | This command cannot be run due to the error: 지정된 파일을 찾을 수 없습니다.
Running "prepdocs.py"
Start-Process: C:\Users\xxx\csrag\scripts\prepdocs.ps1:39
Line |
  39 |  Start-Process -FilePath $venvPythonPath -ArgumentList "./scripts/prep …
     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | This command cannot be run due to the error: 지정된 파일을 찾을 수 없습니다.


Deploying services (azd deploy)

  (✓) Done: Deploying service backend
  - Endpoint: https://app-backend-neadcjycr7uay.azurewebsites.net/


SUCCESS: Your application was provisioned and deployed to Azure in 9 minutes 36 seconds.
PS C:\Users\xxx\csrag>


maybe i try many methods ... but always look at this error...

Error: Command '['C:\\Users\\xxx\\csrag\\scripts\\.venv\\Scripts\\python.exe', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.Installing dependencies from "requirements.txt" into virtual environmentStart-Process: C:\Users\xxx\csrag\scripts\prepdocs.ps1:35Line |  35 |  Start-Process -FilePath $venvPythonPath -ArgumentList "-m pip3 instal …     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     | This command cannot be run due to the error: 지정된 파일을 찾을 수 없습니다.Running "prepdocs.py"Start-Process: C:\Users\xxx\csrag\scripts\prepdocs.ps1:39Line |  39 |  Start-Process -FilePath $venvPythonPath -ArgumentList "./scripts/prep …     |  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     | This command cannot be run due to the error: 지정된 파일을 찾을 수 없습니다.

really i want to resolve this error!!! HELP ME ~

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,190 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.