[Feature Request] Run through venv as an alternative to conda
The reason I asked this, is because I kept running through this error (No module named 'wavmark') when trying to use it outside conda.
I already made some batch files for this, check if this is okay to be added to the repo.
:: setup.bat
@echo off
:: Install Python 3.9
echo Installing Python 3.9...
curl -o python-3.9.7-amd64.exe https://www.python.org/ftp/python/3.9.7/python-3.9.7-amd64.exe
python-3.9.7-amd64.exe /quiet InstallAllUsers=1 PrependPath=1
del python-3.9.7-amd64.exe
:: Create and activate virtual environment
echo Creating and activating virtual environment...
python -m venv myvenv
call myvenv\Scripts\activate
:: Install dependencies from requirements.txt
echo Installing dependencies from requirements.txt...
pip install -r requirements.txt
echo Setup complete. You are now in the virtual environment.
After setting up the venv, run this batch file below.
:: run_openvoice.bat
@echo off
:: Activate virtual environment
call myvenv\Scripts\activate
:: Run python code
python openvoice_app.py
:: Pause to keep the command prompt open
pause
Well there is no reason,that you can't run it on your own environment. there is a problem though with numpy version and I preferred this pytorch version. after activating the environment,install this version of pytorch and numpy. pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url pip install numpy==1.23.5
or just simply use this bat :
python -m venv venv call venv\scripts\activate.bat python.exe -m pip install --upgrade pip pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117 pip install -r requirements.txt pip install numpy==1.23.5 pause
That also works too, however for me, it doesn't work on python version above 3.9 (my python version is 3.11 and Idk why it doesn't work as it also doesn't install wavmark when I pip install it) hence why I set it to python 3.9