我想把python包"pip“安装到我的服务器上。但是我在下载源代码的时候遇到了一个问题。下面列出了全部信息。
[map@host.com ~]$ easy_install pip
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [Errno 218603680]_ssl.c:554: error:0D07A0A0:asn1 encoding routines:ASN1_mbstring_copy:unknown format -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno 218603680] _ssl.c:554: error:0D07A0A0:asn1 encoding routines:ASN1_mbstring_copy:unknown format -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')我还尝试安装了一些其他的包,比如nose、distribute,也得到了同样的错误。顺便说一句,我使用了SecureCRT来ssh服务器。这是关于OpenSSL的问题吗?如何成功安装pip?
发布于 2013-10-23 17:00:11
不知道easy_install出了什么问题,但这就是我在linux上安装pip的方式:
cd /tmp
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm
yum search nginx
yum -y install python-pip
yum install libxslt-devel libxml2-devel
yum install gcc
yum install python-devel
echo 'alias pip="/usr/bin/pip-python"' >> ~/.bashrc这是给Fedora的。对于Ubuntu,你可能只需要使用apt-get install而不是yum来安装上面的库
发布于 2013-10-23 16:58:52
您可以使用发行版的包管理器来安装pip。
Debian/Ubuntu上的RedHat
sudo apt-get install python-pip
sudo yum install python-pip要手动安装,请执行以下操作:
pip下载源安装程序。向下滚动以找到安装程序。以下是1.4.1版的归档文件(当前在此归档文件中:tar xvzf pip-1.4.1.tar.gztar xvzf pip-1.4.1.tar.gzsudo python pip-1.4.1/setup.py installhttps://stackoverflow.com/questions/19537080
复制相似问题