✅ EXACT FIX (2 minute ka kaam)
🔹 Step 1: Check current channels
Tumhe kuch aisa dikhega:
(empty)
🔹 Step 2: Add conda-forge channel (IMPORTANT)
Verify:
Output hona chahiye:
🔹 Step 3: NOW create environment (this will work)
Activate:
Check:
conda config --show channels
Tumhe kuch aisa dikhega:
channels:
(empty)
conda config --add channels conda-forge
conda config --set channel_priority strict
Verify:
conda config --show channels
Output hona chahiye:
channels: - conda-forge
conda create -n ml-env python=3.10
Activate:
conda activate ml-env
Check:
python --version
import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader from transformers import AutoTokenizer, AutoModel # ---...
No comments:
Post a Comment