[英]easy_install is different for python2 and python3 or not?
我已經使用sudo apt-get install python-setuptools
安裝了easy_install。 它將為python2或python3安裝easy_install嗎?
我想安裝virtualenv
使用sudo easy_install virtualenv
。 那么,virtualenv python解釋器將依賴於easy_install python解釋器嗎? 或者我可以為任何python解釋器運行virtualenv?
sudo apt-get install python-setuptools
為Python 2安裝setuptools
。對於Python 3,命令為
sudo apt-get install python3-setuptools
至於virtualenv
—您可以為一個Python安裝它,但可以與以下任何一個一起使用:
virtualenv --python python3.4
即使virtualenv
適用於Python 2.7或3.6。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.