[GH-ISSUE #2470] wsl error #1739

Closed
opened 2026-10-20 10:11:38 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @Morrigan-Ship on GitHub (Feb 1, 2025).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2470

su
. ./run.sh
Create venv...
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.12-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /home/granit/RVC1006AMD_Intel1/RVC1006AMD_Intel1/.venv/bin/python3

bash: .venv/bin/activate: No such file or directory
/usr/bin/python3: No module named pip
joblib not found. Attempting to install...
/usr/bin/python3: No module named pip
numba not found. Attempting to install...
/usr/bin/python3: No module named pip
numpy not found. Attempting to install...
/usr/bin/python3: No module named pip
scipy not found. Attempting to install...
/usr/bin/python3: No module named pip
librosa not found. Attempting to install...
/usr/bin/python3: No module named pip
llvmlite not found. Attempting to install...
/usr/bin/python3: No module named pip
fairseq not found. Attempting to install...
/usr/bin/python3: No module named pip
faiss-cpu not found. Attempting to install...
/usr/bin/python3: No module named pip
gradio not found. Attempting to install...
/usr/bin/python3: No module named pip
Cython not found. Attempting to install...
/usr/bin/python3: No module named pip
pydub not found. Attempting to install...
/usr/bin/python3: No module named pip
soundfile not found. Attempting to install...
/usr/bin/python3: No module named pip
ffmpeg-python not found. Attempting to install...
/usr/bin/python3: No module named pip
tensorboardX not found. Attempting to install...
/usr/bin/python3: No module named pip
Jinja2 not found. Attempting to install...
/usr/bin/python3: No module named pip
json5 not found. Attempting to install...
/usr/bin/python3: No module named pip
Markdown not found. Attempting to install...
/usr/bin/python3: No module named pip
matplotlib not found. Attempting to install...
/usr/bin/python3: No module named pip
matplotlib-inline not found. Attempting to install...
/usr/bin/python3: No module named pip
praat-parselmouth not found. Attempting to install...
/usr/bin/python3: No module named pip
Pillow not found. Attempting to install...
/usr/bin/python3: No module named pip
resampy not found. Attempting to install...
/usr/bin/python3: No module named pip
scikit-learn not found. Attempting to install...
/usr/bin/python3: No module named pip
tensorboard not found. Attempting to install...
/usr/bin/python3: No module named pip
tqdm not found. Attempting to install...
/usr/bin/python3: No module named pip
tornado not found. Attempting to install...
/usr/bin/python3: No module named pip
Werkzeug not found. Attempting to install...
/usr/bin/python3: No module named pip
uc-micro-py not found. Attempting to install...
/usr/bin/python3: No module named pip
sympy not found. Attempting to install...
/usr/bin/python3: No module named pip
tabulate not found. Attempting to install...
/usr/bin/python3: No module named pip
PyYAML not found. Attempting to install...
/usr/bin/python3: No module named pip
pyasn1 not found. Attempting to install...
/usr/bin/python3: No module named pip
pyasn1-modules not found. Attempting to install...
/usr/bin/python3: No module named pip
fsspec not found. Attempting to install...
/usr/bin/python3: No module named pip
absl-py not found. Attempting to install...
/usr/bin/python3: No module named pip
audioread not found. Attempting to install...
/usr/bin/python3: No module named pip
uvicorn not found. Attempting to install...
/usr/bin/python3: No module named pip
colorama not found. Attempting to install...
/usr/bin/python3: No module named pip
pyworld not found. Attempting to install...
/usr/bin/python3: No module named pip
httpx not found. Attempting to install...
/usr/bin/python3: No module named pip
onnxruntime; sys_platform  not found. Attempting to install...
/usr/bin/python3: No module named pip
onnxruntime-gpu; sys_platform  not found. Attempting to install...
/usr/bin/python3: No module named pip
torchcrepe not found. Attempting to install...
/usr/bin/python3: No module named pip
fastapi not found. Attempting to install...
/usr/bin/python3: No module named pip
torchfcpe not found. Attempting to install...
/usr/bin/python3: No module named pip
ffmpy not found. Attempting to install...
/usr/bin/python3: No module named pip
python-dotenv not found. Attempting to install...
/usr/bin/python3: No module named pip
av not found. Attempting to install...
/usr/bin/python3: No module named pip
bash: ./tools/dlmodels.sh: Permission denied
Originally created by @Morrigan-Ship on GitHub (Feb 1, 2025). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2470 ``` su . ./run.sh Create venv... The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt install python3.12-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Failing command: /home/granit/RVC1006AMD_Intel1/RVC1006AMD_Intel1/.venv/bin/python3 bash: .venv/bin/activate: No such file or directory /usr/bin/python3: No module named pip joblib not found. Attempting to install... /usr/bin/python3: No module named pip numba not found. Attempting to install... /usr/bin/python3: No module named pip numpy not found. Attempting to install... /usr/bin/python3: No module named pip scipy not found. Attempting to install... /usr/bin/python3: No module named pip librosa not found. Attempting to install... /usr/bin/python3: No module named pip llvmlite not found. Attempting to install... /usr/bin/python3: No module named pip fairseq not found. Attempting to install... /usr/bin/python3: No module named pip faiss-cpu not found. Attempting to install... /usr/bin/python3: No module named pip gradio not found. Attempting to install... /usr/bin/python3: No module named pip Cython not found. Attempting to install... /usr/bin/python3: No module named pip pydub not found. Attempting to install... /usr/bin/python3: No module named pip soundfile not found. Attempting to install... /usr/bin/python3: No module named pip ffmpeg-python not found. Attempting to install... /usr/bin/python3: No module named pip tensorboardX not found. Attempting to install... /usr/bin/python3: No module named pip Jinja2 not found. Attempting to install... /usr/bin/python3: No module named pip json5 not found. Attempting to install... /usr/bin/python3: No module named pip Markdown not found. Attempting to install... /usr/bin/python3: No module named pip matplotlib not found. Attempting to install... /usr/bin/python3: No module named pip matplotlib-inline not found. Attempting to install... /usr/bin/python3: No module named pip praat-parselmouth not found. Attempting to install... /usr/bin/python3: No module named pip Pillow not found. Attempting to install... /usr/bin/python3: No module named pip resampy not found. Attempting to install... /usr/bin/python3: No module named pip scikit-learn not found. Attempting to install... /usr/bin/python3: No module named pip tensorboard not found. Attempting to install... /usr/bin/python3: No module named pip tqdm not found. Attempting to install... /usr/bin/python3: No module named pip tornado not found. Attempting to install... /usr/bin/python3: No module named pip Werkzeug not found. Attempting to install... /usr/bin/python3: No module named pip uc-micro-py not found. Attempting to install... /usr/bin/python3: No module named pip sympy not found. Attempting to install... /usr/bin/python3: No module named pip tabulate not found. Attempting to install... /usr/bin/python3: No module named pip PyYAML not found. Attempting to install... /usr/bin/python3: No module named pip pyasn1 not found. Attempting to install... /usr/bin/python3: No module named pip pyasn1-modules not found. Attempting to install... /usr/bin/python3: No module named pip fsspec not found. Attempting to install... /usr/bin/python3: No module named pip absl-py not found. Attempting to install... /usr/bin/python3: No module named pip audioread not found. Attempting to install... /usr/bin/python3: No module named pip uvicorn not found. Attempting to install... /usr/bin/python3: No module named pip colorama not found. Attempting to install... /usr/bin/python3: No module named pip pyworld not found. Attempting to install... /usr/bin/python3: No module named pip httpx not found. Attempting to install... /usr/bin/python3: No module named pip onnxruntime; sys_platform not found. Attempting to install... /usr/bin/python3: No module named pip onnxruntime-gpu; sys_platform not found. Attempting to install... /usr/bin/python3: No module named pip torchcrepe not found. Attempting to install... /usr/bin/python3: No module named pip fastapi not found. Attempting to install... /usr/bin/python3: No module named pip torchfcpe not found. Attempting to install... /usr/bin/python3: No module named pip ffmpy not found. Attempting to install... /usr/bin/python3: No module named pip python-dotenv not found. Attempting to install... /usr/bin/python3: No module named pip av not found. Attempting to install... /usr/bin/python3: No module named pip bash: ./tools/dlmodels.sh: Permission denied ```
Author
Owner

@Morrigan-Ship commented on GitHub (Feb 1, 2025):

fixed(solved)
OS: Ubuntu
install python3.8 not python3

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.8 python3.8-dev python3.8-distutils python3.8-venv build-essential
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3.8 get-pip.py

touch run-linux.sh
sudo chmod 777 run-linux.sh
sudo nano ./run-linux.sh

then put this text to the run-linux.sh file:

#!/bin/bash


echo "Create venv..."
requirements_file="requirements.txt"

# Check if Python 3.8 is installed

python3.8 -m venv .venv
source .venv/bin/activate

# Check if required packages are installed and install them if not
if [ -f "${requirements_file}" ]; then
  installed_packages=$(python3.8 -m pip freeze)
  while IFS= read -r package; do
    [[ "${package}" =~ ^#.* ]] && continue
    package_name=$(echo "${package}" | sed 's/[<>=!].*//')
    if ! echo "${installed_packages}" | grep -q "${package_name}"; then
      echo "${package_name} not found. Attempting to install..."
      python3.8 -m pip install --upgrade "${package}"
    fi
  done < "${requirements_file}"
else
  echo "${requirements_file} not found. Please ensure the requirements file with required packages exists."
  exit 1
fi


# Download models
./tools/dlmodels.sh

if [[ $? -ne 0 ]]; then
  exit 1
fi

# Run the main script
python3 infer-web.py --pycmd python3
<!-- gh-comment-id:2629160721 --> @Morrigan-Ship commented on GitHub (Feb 1, 2025): fixed(solved) OS: Ubuntu install python3.8 not python3 ``` sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.8 python3.8-dev python3.8-distutils python3.8-venv build-essential curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py sudo python3.8 get-pip.py touch run-linux.sh sudo chmod 777 run-linux.sh sudo nano ./run-linux.sh ``` then put this text to the run-linux.sh file: ``` #!/bin/bash echo "Create venv..." requirements_file="requirements.txt" # Check if Python 3.8 is installed python3.8 -m venv .venv source .venv/bin/activate # Check if required packages are installed and install them if not if [ -f "${requirements_file}" ]; then installed_packages=$(python3.8 -m pip freeze) while IFS= read -r package; do [[ "${package}" =~ ^#.* ]] && continue package_name=$(echo "${package}" | sed 's/[<>=!].*//') if ! echo "${installed_packages}" | grep -q "${package_name}"; then echo "${package_name} not found. Attempting to install..." python3.8 -m pip install --upgrade "${package}" fi done < "${requirements_file}" else echo "${requirements_file} not found. Please ensure the requirements file with required packages exists." exit 1 fi # Download models ./tools/dlmodels.sh if [[ $? -ne 0 ]]; then exit 1 fi # Run the main script python3 infer-web.py --pycmd python3 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#1739
No description provided.