Closed My12123 closed 1 year ago
Yes, it is better not to use the conda package manager if you can avoid using it. However, there are some modules that are only available on conda repository (It is not currently in nunif's dependency modules).
I have a problem with running commands in venv is it possible to fix it?
What is the problem?
cd .\nunif\venv\Scripts activate.bat cd .. # move one directory back cd ..
This part can be done on one line.
nunif\venv\Scripts\activate
Here is an example of run-web.bat
cd /d F:\nunif
.\venv\Scripts\activate
python -m waifu2x.web --no-size-limit --cache-ttl 120 --cache-dir F:\nunif\waifu2x\cache --tile-size 400
The command is not executed python -m waifu2x.web --no-size-limit --cache-ttl 120 --cache-dir F:\nunif\waifu2x\cache --tile-size 400
How do I make run-web.bat not close?
It seems that "call" is needed to run activate.bat.
cd /d F:\nunif
call .\venv\Scripts\activate
python -m waifu2x.web --no-size-limit --cache-ttl 120 --cache-dir F:\nunif\waifu2x\cache --tile-size 400
pause
Instead of anaconda, it is better to use venv
Even better if this code will be executed by itself. I have a problem with running commands in venv is it possible to fix it? Installation code for windows
Startup code for windows
I usually run using the commands