當前位置:首頁 » 操作系統 » piplinux

piplinux

發布時間: 2022-01-12 08:40:24

A. python 怎麼安裝pip linux

3、 解壓
tar -zxvf Python-2.7.11.tgz
進入Python-2.7.11目錄 輸入./configure
make
make install
4、 此時查看python版本還是系統默認的版本
執行:mv /usr/bin/python /usr/bin/python2.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
再次查看已經更新到你要安裝的版本

B. linux下安裝pip成功之後但是pip無法使用,不知道為什麼,求解

1、pip下載安裝
1.1 pip下載
代碼如下 復制代碼
# wget "" --no-check-certificate
1.2 pip安裝
代碼如下 復制代碼
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install
2. pip使用詳解
2.1 pip
代碼如下 復制代碼
# pip install SomePackage
[...]
Successfully installed SomePackage
2.2 pip查看已安裝的軟體
代碼如下 復制代碼
# pip show --files SomePackage
Name: SomePackage
Version: 1.0
Location: /my/env/lib/pythonx.x/site-packages
Files:
../somepackage/__init__.py
[...]
2.3 pip檢查哪些軟體需要更新
代碼如下 復制代碼
# pip list --outdated
SomePackage (Current: 1.0 Latest: 2.0)
2.4 pip升級軟體
代碼如下 復制代碼
# pip install --upgrade SomePackage
[...]
Found existing installation: SomePackage 1.0
Uninstalling SomePackage:
Successfully uninstalled SomePackage
Running setup.py install for SomePackage
Successfully installed SomePackage
2.5 pip卸載軟體
代碼如下 復制代碼
$ pip uninstall SomePackage
Uninstalling SomePackage:
/my/env/lib/pythonx.x/site-packages/somepackage
Proceed (y/n)? y
Successfully uninstalled SomePackage

C. 請問linux下安裝pip成功之後,pip無法正常使用該怎麼辦

1、pip下載安裝
1.1 pip下載
代碼如下 復制代碼
# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=" --no-check-certificate
1.2 pip安裝
代碼如下 復制代碼
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install
2. pip使用詳解
2.1 pip安裝軟體
代碼如下 復制代碼
# pip install SomePackage
[...]
Successfully installed SomePackage
2.2 pip查看已安裝的軟體
代碼如下 復制代碼
# pip show --files SomePackage
Name: SomePackage
Version: 1.0
Location: /my/env/lib/pythonx.x/site-packages
Files:
../somepackage/__init__.py
[...]
2.3 pip檢查哪些軟體需要更新
代碼如下 復制代碼
# pip list --outdated
SomePackage (Current: 1.0 Latest: 2.0)
2.4 pip升級軟體
代碼如下 復制代碼
# pip install --upgrade SomePackage
[...]
Found existing installation: SomePackage 1.0
Uninstalling SomePackage:
Successfully uninstalled SomePackage
Running setup.py install for SomePackage
Successfully installed SomePackage
2.5 pip卸載軟體
代碼如下 復制代碼
$ pip uninstall SomePackage
Uninstalling SomePackage:
/my/env/lib/pythonx.x/site-packages/somepackage
Proceed (y/n)? y
Successfully uninstalled SomePackage

D. linux在安裝完python2.7之後並且成功安裝pip成功,

#把pip文件軟連接到系統目錄中
cd/usr/local
python

[willie@localhost ]$ python

Python 2.7.12 (default, Nov 22 2016, 17:23:24)

[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2

Type "help", "right", "credits" or "license" for more information.

>>> import os

>>> for r,d,f in os.walk('.'):

... if f=='pip':

... origin=os.path.join(r,d,f)

... break

...

>>> os.popen('ln -s {} bin/pip'.format(origin))

或者如下更快捷:

cd/usr/local
find.-name"pip"-execln-s{}bin/pip;

E. linux伺服器怎麼安裝pip

1、先說一下什麼是pip
pip 是「A tool for installing and managing Python packages.」,也就是說pip是python的軟體安裝工具
2、下面介紹怎麼在linux下安裝pip
下載pip到/usr/local/src
# cd /usr/local/src
# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=" --no-check-certificate
如果提示:-bash: wget: command not found
那麼安裝wget,執行如下:
# yum -y install wget

解奪安裝pip
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install

如果安裝報下面的錯:
Traceback (most recent call last):
File "setup.py", line 6, in <mole>
from setuptools import setup, find_packages
ImportError: No mole named setuptools

那麼就要先安裝setuptools包
(1)下載setuptools包
# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz
(2)解壓setuptools包
# tar zxvf setuptools-2.0.tar.gz
# cd setuptools-2.0
(3)編譯setuptools
# python setup.py build
(4)開始執行setuptools安裝
# python setup.py install

安裝完成setuptools包後,在重新執行:
# cd /usr/local/src/pip-1.5.4
# python setup.py install
至此pip安裝完成

3、linux下pip使用參數
# pip --help

Usage:
pip <command> [options]

Commands:
install Install packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
list List installed packages.
show Show information about installed packages.
search Search PyPI for packages.
wheel Build wheels from your requirements.
zip DEPRECATED. Zip indivial packages.
unzip DEPRECATED. Unzip indivial packages.
bundle DEPRECATED. Create pybundles.
help Show help for commands.

General Options:
-h, --help Show help.
-v, --verbose Give more output. Option is additive, and can be used up to 3 times.
-V, --version Show version and exit.
-q, --quiet Give less output.
--log-file <path> Path to a verbose non-appending log, that only logs failures. This log is active by default at /root/.pip/pip.log.
--log <path> Path to a verbose appending log. This log is inactive by default.
--proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port.
--timeout <sec> Set the socket timeout (default 15 seconds).
--exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup.
--cert <path> Path to alternate CA bundle.

F. linux怎麼用pip install在某一路徑安裝python包

  1. 先到scikit-image的github上將分支選為v0.12.x(master是正在開發的分支,不推薦使用),然後點右邊的download ZIP按鈕獲得壓縮包。

  2. 將壓縮包解壓到合適的目錄,比如我的就是~/workingdir也就是$HOME/workingdir

  3. 進入源目錄(如:~/workingdir/scikit-image-v0.12.x),在裡面執行命令:(如果伺服器上原來就在其它目錄安裝過這個包,那就加上–ignore-installed)
    pip install . –install-option=」–prefix=YourAddress」 –ignore-installed
    (e.g. pip install . –install-option=」–prefix=$HOME/workingdir」 –ignore-installed)!

G. linux伺服器怎麼安裝pip

首先Linux伺服器上更新python,pip的下載和安裝,setuptools的下載和安裝,pytest的安裝。

先說一下什麼是pip:pip 是「A tool for installing and managing Python packages.」,也就是說pip是python的軟體安裝工具

下面介紹怎麼在linux下安裝pip

下載pip到/usr/local/src

# cd /usr/local/src

# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=" --no-check-certificate

如果提示:-bash: wget: command not found

那麼安裝wget,執行如下:

# yum -y install wget

解奪安裝pip

# tar -xzvf pip-1.5.4.tar.gz

# cd pip-1.5.4

# python setup.py install

H. linux中pip密令應該如何使用

成本話語電視嘛關於天賦天賦大方

I. 求助linux上安裝pip的問題

也可以用python自帶的安裝工具,pip install numpy scipy 等。如果沒有pip的話,可以試試easy-install numpy scipy。打開cmd,在裡面輸入這些命令。不想自己一個一個裝的話,最簡單的方法是安裝python(x,y)套裝,也可以考慮enthought套裝,都有完整的安裝包。如果用linux也很方便,比如ubuntu下用sudo apt-get install python-numpy python-scipy python-matplotlib等。

熱點內容
手機如何設置鎖屏密碼個性 發布:2024-11-15 22:44:08 瀏覽:417
mysql導入存儲過程 發布:2024-11-15 22:43:18 瀏覽:638
net連接資料庫代碼 發布:2024-11-15 22:40:16 瀏覽:61
編程計算nk 發布:2024-11-15 22:35:07 瀏覽:833
資料庫第一章 發布:2024-11-15 22:27:07 瀏覽:593
測試php性能工具 發布:2024-11-15 22:19:37 瀏覽:580
安卓手機怎麼給王者榮耀差評 發布:2024-11-15 22:16:47 瀏覽:270
c調用python返回 發布:2024-11-15 22:14:23 瀏覽:943
優酷無法上傳高清視頻 發布:2024-11-15 22:13:13 瀏覽:733
源碼倉 發布:2024-11-15 22:07:29 瀏覽:722