-
Package 'python-virtualenv' has no installation candidate 오류GCP/error 2023. 7. 28. 12:52
필자는 ubuntu(20.04)에서 파이썬 가상 환경을 설치하다가 많은 오류를 만났었다.
이에 대한 대처 방안에 대하여 기록하려고 한다.
1. python-virtualenv 가 설치 후보군에 없다고 나올 때,
(Package python-virtualenv is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'python-virtualenv' has no installation candidate )이때는 먼저, sudo apt-get update && apt-get install python3-virtualenv
이후 sudo apt-get install python3.x-venv 를 해준다.
위와 같은 방법을 참고한 url : https://stackoverflow.com/questions/62314556/how-to-install-virtualenv-on-ubuntu-20-04-gcp-instance
how to install virtualenv on Ubuntu 20.04 GCP instance?
I am trying to install python3 virtualenv. I get the following message when I try to run virtualenv. virtualenv Command 'virtualenv' not found, but can be installed with: apt install python3-virtu...
stackoverflow.com
2. 위와 같이 설치 진행은 되었지만, pyenv install 3.x.x. 해당 명령어를 넣었을 때의 오류 -> 필자의 경우 build 오류가 났었다.
sudo apt-get update
sudo apt-get install build-essential위의 명령어를 해주는 것도 하나의 방법이다.
또 다른 오류를 마주한다면, 해결방안을 찾아 떠나도록 하겠다.