NvidiaTX2自带docker, Python2,Python3(python版本来回切换)

NvidiaTX2自带docker, Python2,Python3

用最新的Jetpack4.4包刷机,发现它自带docker,大家不需要上网去找什么支持arm64的docker如何安装了
查看docker

nvidia@nvidia-desktop:~$ docker

Usage:	docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Options:
      --config string      Location of client config files (default
                           "/home/nvidia/.docker")
  -c, --context string     Name of the context to use to connect to the
                           daemon (overrides DOCKER_HOST env var and
                           default context set with "docker context use")
  -D, --debug              Enable debug mode
  -H, --host list          Daemon socket(s) to connect to
  -l, --log-level string   Set the logging level
                           ("debug"|"info"|"warn"|"error"|"fatal")
                           (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default
                           "/home/nvidia/.docker/ca.pem")
      --tlscert string     Path to TLS certificate file (default
                           "/home/nvidia/.docker/cert.pem")
      --tlskey string      Path to TLS key file (default
                           "/home/nvidia/.docker/key.pem")
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit

并且它配套安装的ubuntu18.04同样自带python2和python3
查看python2

nvidia@nvidia-desktop:~$ python2 --version
Python 2.7.17

查看python3

nvidia@nvidia-desktop:~$ python3 --version 
Python 3.6.9

查看当前默认python版本

nvidia@nvidia-desktop:~$ python --version
Python 2.7.17

默认为Python 2.7.17
切换默认python版本

 echo alias python=python3 >> ~/.bashrc
 source ~/.bashrc`

来回切换

nvidia@nvidia-desktop:~$ sudo echo alias python=python3 >> ~/.bashrc
[sudo] password for nvidia: 
nvidia@nvidia-desktop:~$ source ~/.bashrc
nvidia@nvidia-desktop:~$ source ~/.bashrc
nvidia@nvidia-desktop:~$ python --version
Python 3.6.9
nvidia@nvidia-desktop:~$ sudo echo alias python=python2 >> ~/.bashrc
nvidia@nvidia-desktop:~$ source ~/.bashrc
nvidia@nvidia-desktop:~$ python --version
Python 2.7.17

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值