pipenv 여전히 편하다.
$ pipenv --python 3.8 #env를 생성
$ pipenv shell # 가상환경 진입하기
원하는 파이썬 버전으로 가상환경 생성이 가능하다.
$ pipenv install beautifulsoup4 #가상환경에 설치 가능하다.
$ pipenv install -r ./dir/requirements.txt # requirements.txt에서 설치 가능
라이브러리나 의존성 설치도 직관적이다.
$ pipenv run python main.py # 실행
pipenv로 실행하는 방법이다.
참고로 pipenv는 pipfile로 의존성을 관리해준다.