在 Ubuntu 14.04 上,想要用下述指令建立虛擬環境時,出現沒有安裝 venv 的錯誤訊息
1 2 3 4 5 6 7 8 9 |
root@default:/ # python3 -m venv myvenv 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. |
但依照訊息的描述去安裝 python3-venv 時,又出現找不到這個 package 的錯誤。
參考 [1] 的作法,實際上好像應該安裝的套件是 python3.4-venv
1 |
apt-get install python3.4-venv |
沒有留言:
張貼留言