ติดตั้ง setuptools กับ pip สำหรับ Windows
ติดตั้ง setuptools ใช้คำสั่ง
โหลดไฟล์จาก https://bootstrap.pypa.io/ez_setup.py แล้วเปิดคอมมานด์ไลน์ เข้าไปยังโฟลเลอร์ที่เก็บไฟล์ไว้ แล้วใช้คำสั่ง :
python ez_setup.pyติดตั้ง pip ใช้คำสั่ง :
โหลดไฟล์จาก https://bootstrap.pypa.io/get-pip.py แล้วเปิดคอมมานด์ไลน์ เข้าไปยังโฟลเลอร์ที่เก็บไฟล์ไว้ แล้วใช้คำสั่ง :
python get-pip.pyเสร็จแล้วให้ไปเพิ่ม PATH C:\PythonXX\Scripts ด้วยนะครับ
XX คือ เวชั่นของ Python เช่น 33
ติดตั้ง setuptools กับ pip สำหรับลินุกซ์
ติดตั้ง setuptools ใช้คำสั่ง :
wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo pythonสำหรับ Ubuntu/Debian ใช้คำสั่ง :
sudo apt-get install python-setuptools #python 2.5 - 2.7
sudo apt-get install python3-setuptools #python 3.Xติดตั้ง pip ใช้คำสั่ง :
wget https://bootstrap.pypa.io/get-pip.py | sudo pythonสำหรับ Ubuntu/Debian ใช้คำสั่ง :
sudo apt-get install python-pip #python 2.5 - 2.7
sudo apt-get install python3-pip #python 3.Xติดตั้ง setuptools กับ pip สำหรับผู้ใช้งาน Mac
ติดตั้ง setuptools ใช้คำสั่ง :
curl https://bootstrap.pypa.io/ez_setup.py | pythonติดตั้ง pip ใช้คำสั่ง :
curl https://bootstrap.pypa.io/get-pip.py | pythonติดตามบทความต่อไปนะครับ
ขอบคุณครับ

0 ความคิดเห็น:
แสดงความคิดเห็น
แสดงความคิดเห็นได้ครับ :)