阿就操場啊~
顯示具有
pip
標籤的文章。
顯示所有文章
顯示具有
pip
標籤的文章。
顯示所有文章
2020年5月6日 星期三
不同版本的Python分別安裝套件
幫Python裝套件最流行的是pip,從Python 2.7.9以後,預設的binary安裝檔就會包含這隻套件安裝程式。幫同一台機器上不同的Python安裝套件biopython:
python
-m pip install biopython
./env/bin/python
-m pip install biopython
python-3.6
-m pip install biopython
/opt/Python-2.7.18/bin/pip
install biopython
上述指令分別是幫相同機器上的各個版本的Python安裝套件:
Read more »
2020年2月27日 星期四
Python的pip看套件可安裝的版本
使用Python的套件管理程式pip安裝套件前可先看用search指令來看安裝的版本,例如說套件biopython:
pip search biopython
這樣就會顯示會安裝的biopython版本。若要看有哪些版本可安裝則是輸入:
pip install biopython
==
Read more »
2017年5月19日 星期五
Python的套件管理程式PyPI(pip)
Python下面有許多套件(packages)可以使用。
PyPI (the Python Package Index)
是一套用來管理安裝這些套件的程式,指令名稱叫做pip。用python3.4搭配pip做示範:
sudo yum install python34
sudo yum install python34-pip
第一個指令是安裝python3.4,第二個指令是安裝pip,安裝完以後指令叫做
pip3
都安裝好了之後依序執行下列指令:
pip3
:pip3的說明文件
pip3 --version
:列出PyPI與其搭配的Python版本
pip3 list
:列出已經安裝的Python套件
pip3 show pip
:列出預設就安裝的套件pip資訊。
The PyPA recommended tool for installing Python packages.
pip3 show setuptools
:列出預設就安裝的套件setuptools。
Easily download, build, install, upgrade, and uninstall Python packages
sudo pip3 install --upgrade pip
:升級pip自己
Read more »
較舊的文章
首頁
訂閱:
文章 (Atom)