incorporate this into this setup.py code how it needs to be: python -m spacy download…
- User
incorporate this into this setup.py code how it needs to be: python -m spacy download en_core_web_sm, here's the code: import os import sys import subprocess import urllib.request import zipfile import shutil
def create_directories(): """Create all necessary directories""" directories = [ "assets", "assets/temp", "assets/backgrounds", "assets/backgrounds/video", "assets/backgrounds/audio", "results", "models" ]
codeprint("Creating directories...") for directory in directories: os.makedirs(directory, exist_ok=True) print(f"✓ Created {directory}")def setup_virtual_environment(): """Create and activate virtual environment""" print("\nSetting up virtual environment...") if not os.path.exists("venvDigger"): subprocess.run([sys.executable, "-m", "venv", "venvDigger"]) print("✓ Created virtual environment")
code# Get the appropriate activate script based on OS if sys.platform == "win32": activate_script = "venvDigger\\Scripts\\activate.bat" else: activate_script = "venvDigger/bin/activate" print(f"To activate the virtual environment, run:\n{activate_script}")def install_dependencies(): """Install all required packages""" print("\nInstalling dependencies...")
code# Construct pip command based on OS if sys.platform == "win32": pip_path = "venvDigger\\Scripts\\pip" else: pip_path = "venvDigger/bin/pip" packages = [ "moviepy==1.0.3", "praw==7.8.1", "prawcore~=2.3.0", "requests==2.31.0", "rich==13.7.1", "toml==0.10.2", "translators==5.9.2", "pyttsx3==2.90", "Pillow==10.3.0", "tomlkit==0.12.5", "Flask==3.0.3", "spacy==3.7.5", "numpy==1.26.4", "ffmpeg-python==0.2.0", "vosk", "yt-dlp", "playwright", "torch --index-url https://download.pytorch.org/whl/cpu", "pydantic==2.7.4" # Added the pydantic fix ] for package in packages: print(f"Installing {package}...") subprocess.run([pip_path, "install", package]) - Assistant
- User
do the same with these to the code you just updated: python -m playwright install, python -m playwright install-deps
- Assistant
- User
- Assistant
- User
do this same with this accordingly in the file you just updated from me: torch --index-url https://download.pytorch.org/whl/cpu
- Assistant
- User
- Assistant