I am unable to install module named phidata which is used to create AI assistants.
I have added it in the conda set up for my dev.nix file still when i run the file it states No Module named phidata found.
i have ’ pip install ’ and ’ conda install’ ed it still i amm facing this issue. kindly help me out.
This is my dev.nix file for reference
To learn more about how to use Nix to configure your environment
{ pkgs, … }: {
Which nixpkgs channel to use.
channel = “stable-24.05”; # or “unstable”
Use NixOS Search to find packages
packages = [
# pkgs.go
# pkgs.python311
pkgs.python312Packages.conda
#pkgs.python312Packages.phidata
#pkgs.python312Packages.pypdf
#pkgs.python312Packages.arxiv
# pkgs.nodePackages.nodemon
#pkgs.phidata
];
Sets environment variables in the workspace
env = {};
# ADD THIS NEW SECTION FOR CONDA INITIALIZATION ↓
idx = {
# Search for the extensions you want on https://open-vsx.org/ and use “publisher.id”
extensions = [
“vscodevim.vim”
];
# Enable previews
previews = {
enable = true;
previews = {
# web = {
# # Example: run “npm run dev” with PORT set to IDX’s defined port for previews,
# # and show it in IDX’s web preview panel
# command = [“npm” “run” “dev”];
# manager = “web”;
# env = {
# # Environment variables to set for your server
# PORT = “$PORT”;
# };
# };
};
};
# Workspace lifecycle hooks
workspace = {
# Runs when a workspace is first created
onCreate = {
conda-setup = ‘’
${pkgs.python312Packages.conda}/bin/conda init
${pkgs.python312Packages.conda}/bin/conda config --add channels conda-forge
${pkgs.python312Packages.conda}/bin/conda install -y -c conda-forge phidata=2.7.6
‘’;
# Keep existing lines
# Example: install JS dependencies from NPM
# npm-install = “npm install”;
# Open editors for the following files by default, if they exist:
default.openFiles = [ “.idx/dev.nix” “README.md” ];
};
# Runs when the workspace is (re)started
onStart = {
# Example: start a background task to watch and re-build backend code
# watch-backend = “npm run watch-backend”;
};
};
};
}
i