编译 Python 3.4 不是复制 pip [英] Compiling Python 3.4 is not copying pip

查看:59
本文介绍了编译 Python 3.4 不是复制 pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从 Linux Mint 上的源代码编译了 Python 3.4,但由于某种原因它没有将 pip 复制到它的最终编译文件夹(在 make install 之后).

I have compiled Python 3.4 from the sources on Linux Mint, but for some reason it is not copying pip to its final compiled folder (after the make install).

有什么想法吗?

推荐答案

刚整理出来.下面是从源码编译python的方法.

Just sorted it out. Here it is how to compile python from the sources.

$ ./configure --prefix=/home/user/sources/compiled/python3.4_dev --with-ensurepip=install
$ make
$ make install

如果您收到Ignoring ensurepip failure: pip 1.5.4 requires SSL/TLS"错误:

If you get "Ignoring ensurepip failure: pip 1.5.4 requires SSL/TLS" error:

$ sudo apt-get install libssl-dev openssl 
$ ls
2to3              idle3    pip3.5    python3           python3.5m         pyvenv
2to3-3.5          idle3.5  pydoc3    python3.5         python3.5m-config  pyvenv-3.5
easy_install-3.5  pip3     pydoc3.5  python3.5-config  python3-config

如您所见,pip 已复制到目标文件夹中,--with-ensurepip=install 很重要.

As you can see pip is copied into target folder, the --with-ensurepip=install is important.

这篇关于编译 Python 3.4 不是复制 pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆