[英]Local installation of Python 3.5 and pip
I am trying to install Python 3.5.4 on Fedora 26 without root permission locally.我正在尝试在没有本地 root 权限的情况下在 Fedora 26 上安装 Python 3.5.4。 I did the following:
我做了以下事情:
mkdir ~/python3p5
cd ~/python3p5
wget https://www.python.org/ftp/python/3.5.4/Python-3.5.4.tgz
tar zxfv Python-3.5.4.tgz
find ~/python -type d | xargs chmod 0755
cd Python-3.5.4
Then I compiled the source following its guideline然后我按照其指南编译了源代码
./configure --prefix=$HOME/python3p5
make && make install
Last few installation messages are最后几条安装消息是
Collecting setuptools
收集安装工具
Collecting pip
收集点子
Installing collected packages: setuptools, pip
安装收集的包:setuptools、pip
Successfully installed pip-9.0.1 setuptools-28.8.0
成功安装pip-9.0.1 setuptools-28.8.0
.bashrc_profile has been updated as .bashrc_profile 已更新为
export PATH=$HOME/python3p5/Python-3.5.4/:$PATH
export PYTHONPATH=$HOME/python3p5/Python-3.5.4
It seems pip has been installed as well.似乎 pip 也已安装。 But I am not able to locate this executable.
但我无法找到这个可执行文件。 How can I also install pip locally and add packages to my locally installed python?
我怎样才能在本地安装 pip 并将包添加到我本地安装的 python 中?
Thanks.谢谢。
I think your paths must be我认为你的路径必须是
export PATH=$HOME/python3p5/bin:$PATH
export PYTHONPATH=$HOME/python3p5/lib
Please check these directories exist.请检查这些目录是否存在。
If all your trying to do it install python onto fedora, there is a simpler method.如果您尝试将 python 安装到 Fedora 上,有一个更简单的方法。 See the link below.
请参阅下面的链接。
https://www.tecmint.com/install-pip-in-linux/ https://www.tecmint.com/install-pip-in-linux/
Also, you could just use an IDE such as pycharm or eclipse to program in python.此外,您可以仅使用 pycharm 或 eclipse 等 IDE 在 python 中编程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.