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

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

问题描述

我已经从Linux Mint的源代码编译了Python 3.4,但由于某些原因,它不会将 pip 复制到其最终的编译文件夹(

解决方案



刚刚排序。这里是如何从源编译python。

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


$ b b

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

  $ 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 很重要。


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).

Any ideas?

解决方案

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

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

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

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

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