我正在尝试在我的共享主机上安装新的python环境.我按照这篇文章中的步骤进行操作:
mkdir ~/src
wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
tar -zxvf Python-2.7.1.tar.gz
cd Python-2.7.1
mkdir ~/.localpython
./configure --prefix=/home/<user>/.localpython
make
make install
Run Code Online (Sandbox Code Playgroud)
在进入"./configure --prefix =/home // .localpython"命令后,我得到以下输出:
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux3
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home3/mikos89/Python-2.7.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details. …Run Code Online (Sandbox Code Playgroud) 我正在尝试在AWS EC2实例上安装python 3.x并且:
sudo yum install python3
Run Code Online (Sandbox Code Playgroud)
不起作用:
No package python3 available.
Run Code Online (Sandbox Code Playgroud)
我已经google了,我找不到有这个问题的人,所以我可能会昏暗...请帮忙.我是否必须手动下载并安装它?
谢谢
我正在继续:
Amazon Linux AMI 2018.03.0
Linux ip-xxx-yy-z-ww 4.14.77-70.59.amzn1.x86_64 #1 SMP Mon Nov 12 22:02:45 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
多python环境。它同时安装了Python 2.7.15和3.7.2。
常规(Python2)pip正常运行。
当我尝试运行时pip3 install flask,出现以下错误:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting flask
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/flask/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by …Run Code Online (Sandbox Code Playgroud)