Skip to content

python venv Error returned non-zero exit status 1

Posted on:2018年11月22日 at 00:00

Error returned non-zero exit status 1.

$ python3 -m venv hoge_venv
Error: Command '['/vagrant/hoge_venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
python3 -m venv --without-pip hoge_venv
source hoge_venv/bin/activate
#which python3
#which pip
curl https://bootstrap.pypa.io/get-pip.py | python3
deactivate
source hoge_venv/bin/activate
#which python3
#which pip
pip install requests
pip freeze