我的最终目标是下载并安装awscli
http://docs.aws.amazon.com/cli/latest/userguide/awscli-install-linux.html
为了实现我的目标,似乎需要python和pip.
通过yum安装python对我来说不起作用,所以我手动下载并安装了python3,如下所示:
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz
tar xf Python-3.6.1.tar.xz
cd Python-3.6.1.tar.xz
./configure
make
sudo make altinstall
Run Code Online (Sandbox Code Playgroud)
当我做
pip3.6 --version
我明白了:
Traceback (most recent call last):
File "/usr/local/bin/pip3.6", line 7, in <module>
from pip import main
ImportError: cannot import name 'main'
Run Code Online (Sandbox Code Playgroud)
环境: RHEL 6.6通过ssh访问
到底是怎么回事?如何在我的linux机箱上正确安装pip和python3.6?
编辑:
当尝试通过yum安装它失败所以我试图避免使用yum:
[asemani@rcdc9pfda5r Python-3.6.1]$ sudo yum -y install python-pip
[sudo] password for asemeani:
Loaded plugins: security
Setting up Install Process
No package python-pip available.
Error: Nothing to do
Run Code Online (Sandbox Code Playgroud)
另一个编辑:
导入sys后再调用sys.path这是我得到的:
[asemani@rcdc9pfda5r Python-3.6.1]$ python3.6
Python 3.6.1 (default, …
Run Code Online (Sandbox Code Playgroud) 我无法通过 ssh 进入我的 EC2 实例,这似乎是我传递给 ssh 的 ssh .pem 文件的权限级别的问题,谷歌搜索这似乎是许多其他人面临的问题,但他们的解决方案没有不适合我。
这是我尝试过的,请有人帮忙...
尝试 1:
asemani$ ssh -i ~/.ssh/secure.pem root@54.210.0.1
********************************************************************************
This is a private computer system containing information that is proprietary
and confidential to the owner of the system. Only individuals or entities
authorized by the owner of the system are allowed to access or use the system.
Any unauthorized access or use of the system or information is strictly
prohibited.
All violators will be prosecuted to the fullest extent permitted …
Run Code Online (Sandbox Code Playgroud)