当前位置:首页 » 操作系统 » 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等。

热点内容
阿里巴巴python 发布:2024-11-15 20:56:25 浏览:782
博图脚本编辑 发布:2024-11-15 20:41:06 浏览:312
带密码的箱子钥匙在哪里 发布:2024-11-15 20:40:12 浏览:236
两个次梁相交怎么配置 发布:2024-11-15 20:27:35 浏览:373
android关机实现 发布:2024-11-15 20:26:42 浏览:56
木糠压缩原理 发布:2024-11-15 20:22:53 浏览:654
编译原理难以理解的问题 发布:2024-11-15 20:11:25 浏览:130
安卓9是什么水平 发布:2024-11-15 20:06:57 浏览:185
intel快速存储ssd 发布:2024-11-15 20:00:27 浏览:143
吃鸡配置太低怎么调高画质 发布:2024-11-15 19:58:19 浏览:735