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