본문 바로가기
Programming/Python

Python venv creation error (returned non-zero exit status 1.)

by codingwalks.en 2024. 10. 23.
728x90
반응형

Hello. This is codingwalks.

 

Error: Command '['~/stable-diffusion-webui/venv/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

 

If you create a virtual environment using venv after installing Python directly, you may see an error like the one above. In this case, the problem is due to a related package that has not been installed, so you can install the package below.

sudo apt install python3.10-dev python3.10-venv

 

If you found this post useful, please like and subscribe below. ^^

Buy me a coffee

 

[Codingwalks]에게 송금하기 - AQR

[Codingwalks]에게 송금하기 - AQR

aq.gy

728x90
반응형