我想把我的烧瓶项目应用到我的工作场所Centos6。所以我按照google的指导安装pip、virtualenv和flask,但我不能成功地安装pip或virtualenv。在
我所做的是:
1)http://sharadchhetri.com/2014/05/30/install-pip-centos-rhel-ubuntu-debian/
#rpm -ivh httplink://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#yum install -y python-pip
(version 7.1.0-1.el6)
#pip install virtualenv
这给了
urllib3 will issue (InsecurePlatformWarning)
2)https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4
^{pr2}$这给了
curl: (77) Problem with the SSL CA cert (path? access rights?)
用Python2.7
#cd /tmp
#wget --no-check-certificate httplink://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
#tar -xvf setuptools-1.4.2.tar.gz
#cd setuptools-1.4.2
#python2.7 setup.py install
这给了
Searching for pip
Reading httplink://pypi.python.org/simple/pip/
Download error on httplink://pypi.python.org/simple/pip/: [Errno 0] _ssl.c:343: error:00000000:lib(0):func(0):reason(0) -- 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 httplink://pypi.python.org/simple/
Download error on httplink://pypi.python.org/simple/: [Errno 0] _ssl.c:343: error:00000000:lib(0):func(0):reason(0) -- 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')
4)http://novafactory.net/archives/3074
# wget httplink://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
# python3.4 ez_setup.py
# easy_install-3.4 pip
# pip3.4 install virtualenv
这给了
Downloading/unpacking virtualenv
Cannot fetch index base URL httplink://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement virtualenv
Cleaning up...
No distributions at all found for virtualenv
Storing debug log for failure in /root/.pip/pip.log
我的系统是CentOS版本6.8(Final),python2.6/2.7/3.4
pip3 -V :
pip 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4)
pip2 -V :
pip 7.1.0 from /usr/lib/python2.6/site-packages (python 2.6)
谢谢你的建议
我所做的是不使用pip,而是只下载python模块包。在
我转到了链接http://pypi.python.org/simple/ 我从上面的试验中得到的信息(3)
下载我想要的东西
和tar-xvf[包装]
cd[包装]
[python安装程序安装]
所以我可以不用pip安装Flask和virtualenv
相关问题 更多 >
编程相关推荐