无法为python 3.3安装pip,但对于python 2.7可以正常使用 [英] Can't Install `pip` for `python 3.3` but worked fine for `python 2.7`
问题描述
我是python的新手,但不是编程人员.我的目标是学习用于Web开发的Django.
我一直在尝试安装python
,pip
和Django
的更高版本.我可以为python 2.7
安装pip
很好,但是现在我试图将其安装在python 3
上,它给我一个错误,我认为与SSL认证有关,但不确定如何解决.我感到困惑的是,它曾经可以很好地工作,但不会再次发生.我非常感谢您的帮助.
我的代码如下:
~$> which python3
/Library/Frameworks/Python.framework/Versions/3.3/bin/python3
~$> which pip
/usr/local/bin/pip
~$> pip -V
pip 1.5.6 from /Library/Python/2.7/site-packages (python 2.7)
~$> sudo python3 /Applications/get-pip.py
Downloading/unpacking pip
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
Cleaning up...
No distributions at all found for pip
Storing debug log for failure in /Users/Gemeni/.pip/pip.log
~$>
我还是很困.我使用了一个变通方法并安装了pip ...
easy_install pip == 1.2.1
,但版本不是1.2.1,现在我无法使用pip安装其他任何软件.
〜$> pip安装Django
下载/解压Django
无法获取索引基本URL https://pypi.python.org/simple/ >
找不到符合django要求的下载
正在清理...
根本找不到django的发行版
在/Users/Gemeni/.pip/pip.log中存储失败的调试日志
〜$> pip --version
/Users/Gemeni/.virtualenvs/yara-project/lib/python3.3/site-packages(python 3.3)中的pip 1.5.6
有人可以帮我解决这个问题吗?我最初安装了python3.4,但我发现Django现在不支持它.我随附已安装的pip.我到处都读到这是一个SSL问题,可以通过修改代理设置来解决,但是我不确定如何完成.有什么想法吗?
pip用于python2
pip3用于python3
尝试使用发行版软件包管理器安装python3-pip软件包,然后使用pip3安装Django.如果还有其他问题,请回来
赞:
~#>apt-get install python3-pip
~$>pip3 install django
I'm new to python but not programming. My goal is to learn Django for web development.
I've been trying to install the later versions of python
, pip
and Django
. I could install pip
for python 2.7
just fine but now that I'm trying to install it on python 3
, it gives me an error which I think is related to SSL certifications but not sure how to resolve it. My confusion is the fact that it worked fine once but doesn't happen again. I really appreciate the help.
My code is below:
~$> which python3
/Library/Frameworks/Python.framework/Versions/3.3/bin/python3
~$> which pip
/usr/local/bin/pip
~$> pip -V
pip 1.5.6 from /Library/Python/2.7/site-packages (python 2.7)
~$> sudo python3 /Applications/get-pip.py
Downloading/unpacking pip
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
Cleaning up...
No distributions at all found for pip
Storing debug log for failure in /Users/Gemeni/.pip/pip.log
~$>
I'm still very much stuck. I used a work around and installed pip...
easy_install pip==1.2.1
but the version is not 1.2.1 and I can't install anything else with pip now.
~$> pip install django
Downloading/unpacking django
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement django
Cleaning up...
No distributions at all found for django
Storing debug log for failure in /Users/Gemeni/.pip/pip.log
~$> pip --version
pip 1.5.6 from /Users/Gemeni/.virtualenvs/yara-project/lib/python3.3/site-packages (python 3.3)
Can someone please help me out to figure this out? I installed python3.4 at first but I saw that Django is not supporting it now. I comes with pip already installed. I read everywhere that it's a SSL issue and can be solved by modifying proxy setting but I'm not sure how it can be done. Any thoughts?
pip is for python2
pip3 is for python3
Try to install the package python3-pip with your distro package manager, then use pip3 to install Django. Come back if you get any other problem
Like:
~#>apt-get install python3-pip
~$>pip3 install django
这篇关于无法为python 3.3安装pip,但对于python 2.7可以正常使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!