python3.6命令无法执行的问题

如果装完python3.6以后,发现终端不能执行python3.6

在终端执行export PATH=$PATH:/usr/local/bin

将python3.6加到系统环境变量,会自动在~/.bash_profile里面生成;

Root用户的环境变量路径:/etc/profile;

普通用户的环境变量路径:~/.bash_profile;

猜你喜欢

转载自www.cnblogs.com/haoxinchen/p/9664453.html