가상 환경에서 작업을 하기 위해 아래와 같은 명령어로 가상환경을 생성하려했었다.
python3 -m venv env
그런데 아래와 같은 오류가 발생했다.
---------------------------------------------------------------------------
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-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/root/rest/env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
---------------------------------------------------------------------------
apt-get install python3-venv로 설치를 진행하려해도 이미 기존에 설치해놨기 때문에
설치되어 있다고만 나왔다.
구글링을 해보니 locale관련 문제라고 한다.
이유는 모르겠는데 아래와 같이 locale을 설정해주면 문제가 해결된다.
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales
'Coding > 오류해결' 카테고리의 다른 글
Github Updates were rejected because the remote contains work that you do 오류 해결방법 (0) | 2018.07.02 |
---|---|
'User' object has no attribute 'has_module_perms' 오류 해결 방법 (0) | 2018.06.29 |
Homebrew /usr/local/sbin is not writable. 오류해결 (0) | 2018.01.04 |
TypeError: __init__() missing 1 required positional argument: 'on_delete' 에러 해결방법 (0) | 2018.01.03 |
파이썬 TypeError: 'list' object is not callable 오류 해결 (0) | 2017.11.08 |