导航:首页 > 操作系统 > piplinux

piplinux

发布时间:2022-03-05 06:40:23

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

❷ 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;

❸ 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
再次查看已经更新到你要安装的版本

❹ 请问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

❺ 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)!

❻ 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.

❼ linux的python怎么安装pip

下载setuptools和pip的源码
先安装setuptoos后安装pip
安装方式加压后在相应目录内执行python setup.py install

❽ 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/pac...

❾ 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

阅读全文

与piplinux相关的资料

热点内容
在健康青岛App挂号怎么查询 浏览:269
普通人上网用的是什么服务器 浏览:453
python安装了找不着 浏览:181
常微分第三版答案pdf 浏览:264
安卓机qq怎么开悬浮窗 浏览:63
备孕三年了怎么缓解压力大 浏览:743
登录阿里云服务器黑屏 浏览:336
匿名元组Python 浏览:725
华为运动健康存储的文件夹 浏览:522
cad正多边形命令 浏览:461
压缩比150能加97油吗 浏览:399
linux新建群在哪个文件夹 浏览:794
韵达快运app在哪里签收 浏览:338
阿里云服务器如何绑定备案域名 浏览:273
单片机用什么键盘好 浏览:25
android动画面试 浏览:309
pdf无法删除 浏览:90
ftp删除文件java 浏览:89
裂变棋牌源码 浏览:87
邀月命令江别鹤退婚 浏览:656