No module named 'dotenv' E:\Ai\ai-toolkit>
Traceback (most recent call last):
File "E:\Ai\ai-toolkit\run.py", line 5, in
E:\Ai\ai-toolkit>
(venv) PS E:\Ai\ai-toolkit> pip install -r requirements.txt Collecting git+https://github.com/jaretburkett/easy_dwpose.git (from -r requirements.txt (line 3)) Cloning https://github.com/jaretburkett/easy_dwpose.git to c:\users\zjx\appdata\local\temp\pip-req-build-lsynjhoe Running command git clone --filter=blob:none --quiet https://github.com/jaretburkett/easy_dwpose.git 'C:\Users\zjx\AppData\Local\Temp\pip-req-build-lsynjhoe' Resolved https://github.com/jaretburkett/easy_dwpose.git to commit 417b34de004d80b9181ff96059f5ae0793abd235 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting git+https://github.com/huggingface/diffusers@00f95b9755718aabb65456e791b8408526ae6e76 (from -r requirements.txt (line 4)) Cloning https://github.com/huggingface/diffusers (to revision 00f95b9755718aabb65456e791b8408526ae6e76) to c:\users\zjx\appdata\local\temp\pip-req-build-4q8adg5i Running command git clone --filter=blob:none --quiet https://github.com/huggingface/diffusers 'C:\Users\zjx\AppData\Local\Temp\pip-req-build-4q8adg5i' Running command git rev-parse -q --verify 'sha^00f95b9755718aabb65456e791b8408526ae6e76' Running command git fetch -q https://github.com/huggingface/diffusers 00f95b9755718aabb65456e791b8408526ae6e76 Running command git checkout -q 00f95b9755718aabb65456e791b8408526ae6e76 Resolved https://github.com/huggingface/diffusers to commit 00f95b9755718aabb65456e791b8408526ae6e76 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting torchao==0.10.0 (from -r requirements.txt (line 1)) Using cached torchao-0.10.0-py3-none-any.whl.metadata (15 kB) Requirement already satisfied: safetensors in e:\ai\ai-toolkit\venv\lib\site-packages (from -r requirements.txt (line 2)) (0.5.3) Collecting transformers==4.52.4 (from -r requirements.txt (line 5)) Using cached transformers-4.52.4-py3-none-any.whl.metadata (38 kB) Collecting lycoris-lora==1.8.3 (from -r requirements.txt (line 6)) Using cached lycoris_lora-1.8.3.tar.gz (96 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting flatten_json (from -r requirements.txt (line 7)) Using cached flatten_json-0.1.14-py3-none-any.whl.metadata (4.2 kB) Requirement already satisfied: pyyaml in e:\ai\ai-toolkit\venv\lib\site-packages (from -r requirements.txt (line 8)) (6.0.2) Requirement already satisfied: oyaml in e:\ai\ai-toolkit\venv\lib\site-packages (from -r requirements.txt (line 9)) (1.0) Collecting tensorboard (from -r requirements.txt (line 10)) Using cached tensorboard-2.19.0-py3-none-any.whl.metadata (1.8 kB) Collecting kornia (from -r requirements.txt (line 11)) Using cached kornia-0.8.1-py2.py3-none-any.whl.metadata (17 kB) Collecting invisible-watermark (from -r requirements.txt (line 12)) Using cached invisible_watermark-0.2.0-py3-none-any.whl.metadata (8.2 kB) Collecting einops (from -r requirements.txt (line 13)) Using cached einops-0.8.1-py3-none-any.whl.metadata (13 kB) Requirement already satisfied: accelerate in e:\ai\ai-toolkit\venv\lib\site-packages (from -r requirements.txt (line 14)) (1.8.1) Collecting toml (from -r requirements.txt (line 15)) Using cached toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB) Collecting albumentations==1.4.15 (from -r requirements.txt (line 16)) Using cached albumentations-1.4.15-py3-none-any.whl.metadata (38 kB) Collecting albucore==0.0.16 (from -r requirements.txt (line 17)) Using cached albucore-0.0.16-py3-none-any.whl.metadata (3.1 kB) Collecting pydantic (from -r requirements.txt (line 18)) Using cached pydantic-2.11.7-py3-none-any.whl.metadata (67 kB) Collecting omegaconf (from -r requirements.txt (line 19)) Using cached omegaconf-2.3.0-py3-none-any.whl.metadata (3.9 kB) Collecting k-diffusion (from -r requirements.txt (line 20)) Using cached k_diffusion-0.1.1.post1-py3-none-any.whl.metadata (3.9 kB) Collecting open_clip_torch (from -r requirements.txt (line 21)) Using cached open_clip_torch-2.32.0-py3-none-any.whl.metadata (31 kB) Collecting timm (from -r requirements.txt (line 22)) Using cached timm-1.0.16-py3-none-any.whl.metadata (57 kB) Collecting prodigyopt (from -r requirements.txt (line 23)) Using cached prodigyopt-1.1.2-py3-none-any.whl.metadata (4.8 kB) Collecting controlnet_aux==0.0.10 (from -r requirements.txt (line 24)) Using cached controlnet_aux-0.0.10-py3-none-any.whl.metadata (7.1 kB) Requirement already satisfied: python-dotenv in e:\ai\ai-toolkit\venv\lib\site-packages (from -r requirements.txt (line 25)) (1.1.1) Collecting bitsandbytes (from -r requirements.txt (line 26)) Using cached bitsandbytes-0.46.0-py3-none-win_amd64.whl.metadata (10 kB) Collecting hf_transfer (from -r requirements.txt (line 27)) Using cached hf_transfer-0.1.9-cp38-abi3-win_amd64.whl.metadata (1.8 kB) Collecting lpips (from -r requirements.txt (line 28)) Using cached lpips-0.1.4-py3-none-any.whl.metadata (10 kB) Collecting pytorch_fid (from -r requirements.txt (line 29)) Using cached pytorch_fid-0.3.0-py3-none-any.whl.metadata (5.3 kB) Collecting optimum-quanto==0.2.4 (from -r requirements.txt (line 30)) Using cached optimum_quanto-0.2.4-py3-none-any.whl.metadata (13 kB) Collecting sentencepiece (from -r requirements.txt (line 31)) Using cached sentencepiece-0.2.0.tar.gz (2.6 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
Traceback (most recent call last):
File "E:\Ai\ai-toolkit\venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
note: This error originates from a subprocess, and is likely not a problem with pip. (venv) PS E:\Ai\ai-toolkit> cd ui (venv) PS E:\Ai\ai-toolkit\ui> npm run build_and_start
[email protected] build_and_start npm install && npm run update_db && npm run build && npm run start
up to date, audited 445 packages in 3s
60 packages are looking for funding
run npm fund for details
4 vulnerabilities (1 low, 2 high, 1 critical)
To address issues that do not require attention, run: npm audit fix
To address all issues, run: npm audit fix --force
Run npm audit for details.
[email protected] update_db npx prisma generate && npx prisma db push
Prisma schema loaded from prisma\schema.prisma Error: EPERM: operation not permitted, rename 'E:\Ai\ai-toolkit\ui\node_modules.prisma\client\query_engine-windows.dll.node.tmp43516' -> 'E:\Ai\ai-toolkit\ui\node_modules.prisma\client\query_engine-windows.dll.node'
I solved this issue by activating the virtual environment (on Windows, venv\Scripts\activate), and running pip install -r requirements.txt. You can also try to pip install <package> directly.
I solved this issue by activating the virtual environment (on Windows,
venv\Scripts\activate), and runningpip install -r requirements.txt. You can also try topip install <package>directly.
how to do this?
I solved this issue by activating the virtual environment (on Windows,
venv\Scripts\activate), and runningpip install -r requirements.txt. You can also try topip install <package>directly.how to do this?
-
Activate the Virtual Environment:
- On Windows, open your Command Prompt or PowerShell.
- Navigate to the directory where your virtual environment is located (for example:
cd E:\Ai\ai-toolkit\. This is typically found in a folder named something likevenvwithin your project directory. This is the ai-toolkit directory. - Once in the correct directory, activate the virtual environment by running the following command:
venv\Scripts\activate - After executing this command, you should see the name of your virtual environment appear in your command prompt, indicating that it is now active.
-
Install Required Packages:
- With the virtual environment activated, install all the required packages listed in your
requirements.txtfile by running:pip install -r requirements.txt - This command will read the
requirements.txtfile and install each package specified within it. Ensure that you have an active internet connection for this step, as it will download and install the packages from the Python Package Index (PyPI).
- With the virtual environment activated, install all the required packages listed in your
-
Alternative Installation Method:
- If you encounter issues with installing all packages at once or if you only need to install a specific package, you can try installing it directly using pip. For example, to install a package named
dotenv, run:pip install dotenv
- If you encounter issues with installing all packages at once or if you only need to install a specific package, you can try installing it directly using pip. For example, to install a package named
G:\AI TOOLKIT BY OSTRIS\ai-toolkit>venv\Scripts\activate
(venv) G:\AI TOOLKIT BY OSTRIS\ai-toolkit>pip install -r requirements.txt Collecting git+https://github.com/jaretburkett/easy_dwpose.git (from -r requirements.txt (line 3)) Cloning https://github.com/jaretburkett/easy_dwpose.git to c:\users\mishr\appdata\local\temp\pip-req-build-p_dcs24k Running command git clone --filter=blob:none --quiet https://github.com/jaretburkett/easy_dwpose.git 'C:\Users\mishr\AppData\Local\Temp\pip-req-build-p_dcs24k' Resolved https://github.com/jaretburkett/easy_dwpose.git to commit 028aa1449f9e07bdeef7f84ed0ce7a2660e72239 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting git+https://github.com/huggingface/diffusers@7ea065c5070a5278259e6f1effa9dccea232e62a (from -r requirements.txt (line 4)) Cloning https://github.com/huggingface/diffusers (to revision 7ea065c5070a5278259e6f1effa9dccea232e62a) to c:\users\mishr\appdata\local\temp\pip-req-build-gotwhcyx Running command git clone --filter=blob:none --quiet https://github.com/huggingface/diffusers 'C:\Users\mishr\AppData\Local\Temp\pip-req-build-gotwhcyx' Running command git rev-parse -q --verify 'sha^7ea065c5070a5278259e6f1effa9dccea232e62a' Running command git fetch -q https://github.com/huggingface/diffusers 7ea065c5070a5278259e6f1effa9dccea232e62a Running command git checkout -q 7ea065c5070a5278259e6f1effa9dccea232e62a Resolved https://github.com/huggingface/diffusers to commit 7ea065c5070a5278259e6f1effa9dccea232e62a Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting torchao==0.10.0 (from -r requirements.txt (line 1)) Using cached torchao-0.10.0-py3-none-any.whl.metadata (15 kB) Collecting safetensors (from -r requirements.txt (line 2)) Using cached safetensors-0.6.2-cp38-abi3-win_amd64.whl.metadata (4.1 kB) Collecting transformers==4.52.4 (from -r requirements.txt (line 5)) Using cached transformers-4.52.4-py3-none-any.whl.metadata (38 kB) Collecting lycoris-lora==1.8.3 (from -r requirements.txt (line 6)) Using cached lycoris_lora-1.8.3.tar.gz (96 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting flatten_json (from -r requirements.txt (line 7)) Using cached flatten_json-0.1.14-py3-none-any.whl.metadata (4.2 kB) Collecting pyyaml (from -r requirements.txt (line 8)) Using cached PyYAML-6.0.2-cp313-cp313-win_amd64.whl.metadata (2.1 kB) Collecting oyaml (from -r requirements.txt (line 9)) Using cached oyaml-1.0-py2.py3-none-any.whl.metadata (1.2 kB) Collecting tensorboard (from -r requirements.txt (line 10)) Using cached tensorboard-2.20.0-py3-none-any.whl.metadata (1.8 kB) Collecting kornia (from -r requirements.txt (line 11)) Using cached kornia-0.8.1-py2.py3-none-any.whl.metadata (17 kB) Collecting invisible-watermark (from -r requirements.txt (line 12)) Using cached invisible_watermark-0.2.0-py3-none-any.whl.metadata (8.2 kB) Collecting einops (from -r requirements.txt (line 13)) Using cached einops-0.8.1-py3-none-any.whl.metadata (13 kB) Collecting accelerate (from -r requirements.txt (line 14)) Using cached accelerate-1.10.0-py3-none-any.whl.metadata (19 kB) Collecting toml (from -r requirements.txt (line 15)) Using cached toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB) Collecting albumentations==1.4.15 (from -r requirements.txt (line 16)) Using cached albumentations-1.4.15-py3-none-any.whl.metadata (38 kB) Collecting albucore==0.0.16 (from -r requirements.txt (line 17)) Using cached albucore-0.0.16-py3-none-any.whl.metadata (3.1 kB) Collecting pydantic (from -r requirements.txt (line 18)) Using cached pydantic-2.11.7-py3-none-any.whl.metadata (67 kB) Collecting omegaconf (from -r requirements.txt (line 19)) Using cached omegaconf-2.3.0-py3-none-any.whl.metadata (3.9 kB) Collecting k-diffusion (from -r requirements.txt (line 20)) Using cached k_diffusion-0.1.1.post1-py3-none-any.whl.metadata (3.9 kB) Collecting open_clip_torch (from -r requirements.txt (line 21)) Using cached open_clip_torch-3.1.0-py3-none-any.whl.metadata (32 kB) Collecting timm (from -r requirements.txt (line 22)) Using cached timm-1.0.19-py3-none-any.whl.metadata (60 kB) Collecting prodigyopt (from -r requirements.txt (line 23)) Using cached prodigyopt-1.1.2-py3-none-any.whl.metadata (4.8 kB) Collecting controlnet_aux==0.0.10 (from -r requirements.txt (line 24)) Using cached controlnet_aux-0.0.10-py3-none-any.whl.metadata (7.1 kB) Collecting python-dotenv (from -r requirements.txt (line 25)) Using cached python_dotenv-1.1.1-py3-none-any.whl.metadata (24 kB) Collecting bitsandbytes (from -r requirements.txt (line 26)) Using cached bitsandbytes-0.47.0-py3-none-win_amd64.whl.metadata (11 kB) Collecting hf_transfer (from -r requirements.txt (line 27)) Using cached hf_transfer-0.1.9-cp38-abi3-win_amd64.whl.metadata (1.8 kB) Collecting lpips (from -r requirements.txt (line 28)) Using cached lpips-0.1.4-py3-none-any.whl.metadata (10 kB) Collecting pytorch_fid (from -r requirements.txt (line 29)) Using cached pytorch_fid-0.3.0-py3-none-any.whl.metadata (5.3 kB) Collecting optimum-quanto==0.2.4 (from -r requirements.txt (line 30)) Using cached optimum_quanto-0.2.4-py3-none-any.whl.metadata (13 kB) Collecting sentencepiece (from -r requirements.txt (line 31)) Using cached sentencepiece-0.2.1-cp313-cp313-win_amd64.whl.metadata (10 kB) Collecting huggingface_hub (from -r requirements.txt (line 32)) Using cached huggingface_hub-0.34.4-py3-none-any.whl.metadata (14 kB) Collecting peft (from -r requirements.txt (line 33)) Using cached peft-0.17.0-py3-none-any.whl.metadata (14 kB) Collecting gradio (from -r requirements.txt (line 34)) Using cached gradio-5.42.0-py3-none-any.whl.metadata (16 kB) Collecting python-slugify (from -r requirements.txt (line 35)) Using cached python_slugify-8.0.4-py2.py3-none-any.whl.metadata (8.5 kB) Collecting opencv-python (from -r requirements.txt (line 36)) Using cached opencv_python-4.12.0.88-cp37-abi3-win_amd64.whl.metadata (19 kB) Collecting pytorch-wavelets==1.3.0 (from -r requirements.txt (line 37)) Using cached pytorch_wavelets-1.3.0-py3-none-any.whl.metadata (10.0 kB) Collecting matplotlib==3.10.1 (from -r requirements.txt (line 38)) Using cached matplotlib-3.10.1-cp313-cp313-win_amd64.whl.metadata (11 kB) Collecting setuptools==69.5.1 (from -r requirements.txt (line 39)) Using cached setuptools-69.5.1-py3-none-any.whl.metadata (6.2 kB) Collecting imageio<3.0.0,>=2.9.0 (from easy_dwpose==1.0.3->-r requirements.txt (line 3)) Using cached imageio-2.37.0-py3-none-any.whl.metadata (5.2 kB) Collecting loguru<0.8.0,>=0.7.2 (from easy_dwpose==1.0.3->-r requirements.txt (line 3)) Using cached loguru-0.7.3-py3-none-any.whl.metadata (22 kB) Collecting numpy<2.0.0,>=1.26.4 (from easy_dwpose==1.0.3->-r requirements.txt (line 3)) Using cached numpy-1.26.4.tar.gz (15.8 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [12 lines of output] + G:\AI TOOLKIT BY OSTRIS\ai-toolkit\venv\Scripts\python.exe C:\Users\mishr\AppData\Local\Temp\pip-install-tcfikz10\numpy_cff9b8b17b2d4bc2a2ce2c2d66077b8d\vendored-meson\meson\meson.py setup C:\Users\mishr\AppData\Local\Temp\pip-install-tcfikz10\numpy_cff9b8b17b2d4bc2a2ce2c2d66077b8d C:\Users\mishr\AppData\Local\Temp\pip-install-tcfikz10\numpy_cff9b8b17b2d4bc2a2ce2c2d66077b8d.mesonpy-wmxop4dg -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\mishr\AppData\Local\Temp\pip-install-tcfikz10\numpy_cff9b8b17b2d4bc2a2ce2c2d66077b8d.mesonpy-wmxop4dg\meson-python-native-file.ini The Meson build system Version: 1.2.99 Source dir: C:\Users\mishr\AppData\Local\Temp\pip-install-tcfikz10\numpy_cff9b8b17b2d4bc2a2ce2c2d66077b8d Build dir: C:\Users\mishr\AppData\Local\Temp\pip-install-tcfikz10\numpy_cff9b8b17b2d4bc2a2ce2c2d66077b8d.mesonpy-wmxop4dg Build type: native build Project name: NumPy Project version: 1.26.4
..\meson.build:1:0: ERROR: Compiler cl cannot compile programs.
A full log can be found at C:\Users\mishr\AppData\Local\Temp\pip-install-tcfikz10\numpy_cff9b8b17b2d4bc2a2ce2c2d66077b8d\.mesonpy-wmxop4dg\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.
(venv) G:\AI TOOLKIT BY OSTRIS\ai-toolkit>cd ui
(venv) G:\AI TOOLKIT BY OSTRIS\ai-toolkit\ui> (venv) G:\AI TOOLKIT BY OSTRIS\ai-toolkit\ui>npm run build_and_start
[email protected] build_and_start npm install && npm run update_db && npm run build && npm run start
up to date, audited 473 packages in 1s
82 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
[email protected] update_db npx prisma generate && npx prisma db push
Prisma schema loaded from prisma\schema.prisma Error: EPERM: operation not permitted, rename 'G:\AI TOOLKIT BY OSTRIS\ai-toolkit\ui\node_modules.prisma\client\query_engine-windows.dll.node.tmp48108' -> 'G:\AI TOOLKIT BY OSTRIS\ai-toolkit\ui\node_modules.prisma\client\query_engine-windows.dll.node'
as a noob what should I try next to solve the problem.
It looks like you don't have a working compiler. You should lay out the situation to ChatGPT alongside the meson log, and have it guide you. It might get a bit involved.