与PIP Debian的8

问题描述:

在Debian 8,安装Python 3.5的话,我的问题是很简单,我怎么能安装Python 3.5无PIP像越来越ImportError: cannot import name 'HTTPSHandler'错误?与PIP Debian的8

到目前为止,我发现在Linux上安装Python的最简单方法是使用python发行版(Miniconda)。

# Assuming you want 64bit 
cd ~ 
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh 
bash Miniconda-latest-Linux-x86_64.sh 
# Agree to the license agreement and where to put it 
# Add it to your $PATH 
# Assuming you use bash (You might have to change this if my memory isn't correct...) 
echo 'export PATH="~/miniconda3/bin:$PATH"' >> ~/.bashrc 
# reload your .bashrc 
source ~/.bashrc 
# make sure it works 
python --version # should print out 3.5 
# install something with pip 
pip install pyperclip # or anything 
# make sure it works 
python -c 'import pyperclip' 

现在你可以使用点子。但是,对于像numpy等复杂的二进制软件包,Miniconda还附带一个名为conda的工具。 conda --help或谷歌应该让你开始下来,如果你需要它的路线。

如果你需要卸载Miniconda,只是抹去~/miniconda3并移除~/.bashrc

而且上述PATH行,如果你有房,你想了很多预安装的软件包那只是工作',他们也推出Anaconda python

如果你没有使用该终端,Anaconda附带一个体面的IDE,Spyder,它可以通过从终端键入spyder开始。

+0

此解决方案仅适用于我。谢谢 –