如何为python3.4安装额外的pip



我通常在我的ubuntu上使用python 3.7,但为了运行一个该死的jupyter笔记本(来自https://github.com/robbielynch/ibrainfuck)我需要跑蟒蛇3.4。所以我用安装了python3.4

wget https://www.python.org/ftp/python/3.4.0/Python-3.4.0.tgz
tar xzvf Python-3.4.0.tgz
cd python3.4/
./configure
make
sudo make install

它运行得很好,我可以通过在终端中键入CCD_ 1来运行python3.4。

好吧,现在我试着为python3.4安装pip如下:

wget https://bootstrap.pypa.io/get-pip.py
sudo python3.4 get-pip.py

得到一个RuntimeError: Python 3.5 or later is required错误。

有什么想法吗,如何为python3.4安装pip?

谢谢你的建议!

您可以键入python3.4 -m pip install <SomePackage>。python文档中有一节介绍了如何在进行多个安装时安装软件包。

最新更新