ubuntu18.04 devstack train安装 python3

local.conf

stack@ubuntu2105:~/devstack$ cat local.conf
[[local|localrc]]
DOWNLOAD_DEFAULT_IMAGES=False
IMAGE_URLS="http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"

# use TryStack git mirror
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/sice-html5.git

# Password for KeyStone, Database, RabbitMQ and Service
ADMIN_PASSWORD=StrongAdminSecret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD

USE_PYTHON3=True
# Host IP - get your Server/VM IP address from ip addr command
HOST_IP=10.0.2.30
知识兔

成功信息

=========================
DevStack Component Timing
 (times are in seconds)  
=========================
run_process           35
test_with_retry        5
apt-get-update         2
osc                  257
wait_for_service      22
dbsync                71
pip_install          222
apt-get               49
-------------------------
Unaccounted time     736
=========================
Total runtime        1399



This is your host IP address: 10.0.2.30
This is your host IPv6 address: ::1
Horizon is now available at http://10.0.2.30/dashboard
Keystone is serving at http://10.0.2.30/identity/
The default users are: admin and demo
The password: StrongAdminSecret

WARNING: 
Using lib/neutron-legacy is deprecated, and it will be removed in the future


Services are running under systemd unit files.
For more information see: 
https://docs.openstack.org/devstack/latest/systemd.html

DevStack Version: train
Change: e3cd502252a52c10007a7a39b98359d97d9cc24a Merge "Enable accept_ra before enabling forwarding" 2019-09-24 22:41:48 +0000
OS Version: Ubuntu 18.04 bionic

2019-09-26 02:45:44.903 | stack.sh completed in 1399 seconds.
知识兔

python源设置

stack@ubuntu2105:~/devstack$ sudo cat /root/.pip/pip.conf
[global]
index-url=https://pypi.douban.com/simple
trusted-host=pypi.douban.com
知识兔

系统的python版本

stack@ubuntu2105:~/devstack$ python
python               python2.7            python2-config       python3.6            python3.6m           python3.7            python3-jsondiff     python3-jsonpointer  python3m
python2              python2.7-config     python3              python3.6-config     python3.6m-config    python3.7m           python3-jsonpatch    python3-jsonschema   python-config
stack@ubuntu2105:~/devstack$ python3
Python 3.6.8 (default, Aug 20 2019, 17:12:48) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
stack@ubuntu2105:~/devstack$ python2
python2           python2.7         python2.7-config  python2-config    
stack@ubuntu2105:~/devstack$ python2
Python 2.7.15+ (default, Jul  9 2019, 16:51:35) 
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
stack@ubuntu2105:~/devstack$ python3.7
Python 3.7.3 (default, Apr  3 2019, 19:16:38) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
知识兔
计算机