ubuntu預設使用python2,更改預設使用python3
直接執行這兩個命令即可:
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
相關推薦
ubuntu預設使用python2,更改預設使用python3
ubuntu預設使用python2,更改預設使用python3 直接執行這兩個命令即可: sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100 sudo update
Windows環境安裝Jenkins,更改預設埠
一、下載 找到Jenkins官網的以下位置,點選下載Windows版本的軟體包 二、直接解壓、安裝 如下圖,點選1,將程式安裝在2目錄中 三、安裝步驟(這裡筆者省略,需要的請自行搜尋,抱歉!) 四、更改預設訪問埠 Jenkins的預設埠:8080,而我
centOS7,vsftpd,更改預設目錄後nginx訪問失敗,403forbidden解決
server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main;
android 百度地圖自定義圓,更改預設圖示等常用方法
總結了一下百度地圖常用的方法(前提是整合百度地圖環境成功): 1:定位到已經經緯度,只需要改變LatLng的引數即可。有兩種方法: 方法1: //定義Maker座標點 LatLng point = new LatLng(39.96317
vue專案中,圖片無法顯示時,顯示預設圖片,但預設圖片路徑出錯
設定img的onerror,不能正常顯示圖片,路徑不對解決方法 <img :src="img.url" alt="圖片" width="100%" :onerror="defaultImg"/> export default { name: "pass-co
JS獲取當前時間(YYYY-MM-DD ),element顯示預設當前時間,顯示預設昨天,顯示預設上個月,
進來的隨便看看,或許有幫助 vue+element-ui datepicker 設定預設日期 用的框架是vue+element-ui ,以下是時間控制元件 <el-form-item label="月份"> <el-date-picker v-m
更改nginx預設埠,ubuntu更改nginx埠號
我們都知道nginx 預設使用80埠,有時候我們希望nginx執行在其他埠,就需要更改nginx配置 nginx配置檔案在/etc/nginx目錄下的nginx.conf。在nginx.conf->http選項末尾有引入兩個目錄下的檔案分別為: http { #
Ubuntu中更改預設的root使用者密碼,以及怎樣修改使用者密碼
新安裝的Ubuntu系統中預設的root使用者密碼是多少?該怎麼修改?## 如題,相信許多剛接觸Ubuntu系統的新手大多會遇
Ubuntu 更改預設Python 版本
Ubuntu 版本: 18.04 Python 預設版本: Python2.7 目標 Python 版本:Python3.6 方案一 檢視電腦 Pytho 版本 #:update-alternatives --list python 以上命令如果出現以下
ubuntu 切換python預設版本,兩行命令 ubuntu 切換python預設版本
原 ubuntu 切換python預設版本 2018年08月30日 15:04:13 上單之光 閱讀數:53
Ubuntu更改預設python版本的方法
一般Ubuntu預設的Python版本都為2.x, 如何改變Python的預設版本呢? 1.檢視系統中都有哪些 Python 的二進位制檔案可供使用。 ls /usr/bin/python* /usr/bin/python /usr/bin/python2-co
ubuntu 12.04設定開機啟動圖形應用程式,替換預設圖形桌面
想把ubuntu 12.04的開機設定模式改為預設為命令方式,搜尋半天,現將成功的方法轉出,並感謝作者。 一、前言 無論你想要在ubuntu 12.04(11.10適用)開機啟動圖形程式,或者非圖形程式,相信這篇文章能幫上大忙。 我將根據我的需求講解我的做法,並解釋
ubuntu 16.04 更改預設執行級別
本文轉自:Ubuntu下修改系統的預設啟動級別 想自定義Ubuntu系統是預設以圖形介面啟動還是以命令列形式啟動,現在我的Ubuntu版本是ubuntu-16.04,嘗試了網上的兩種方法——修改/etc/X11/default-display-manager檔
C#列印預覽時更改預設邊距,並設定預設的寬高
new PrinterMargins(20,20,20,20,787,1129) //此步最好在初始化,document 的時候就設定好邊距,否則後面邊距設定後,還有一些預設的X1,Y1非設定的值不會變化,會是預設的100,影響了列印時整個座標的結果。
Ubuntu更改預設python版本的兩種方法
1、基於使用者修改 Python 版本: 想要為某個特定使用者修改 Python 版本,只需要在其 home 目錄下建立一個 alias(別名) 即可。開啟該使用者的 ~/.bashrc檔案,新增新的別名資訊來修改預設使用的 Python 版本。 alias
ubuntu下更改預設python版本
輸入 vi ~/.bashrc 如果要將預設改為python2在底下新增 alias python='/usr/bin/python2' 要改為python3就加 alias python='/usr/bin/python3' 修改完成之後輸入 . ~/.
使用 fastjson 轉換 Date 格式的資料,預設是時間戳,更改為 年-月-日 的方法
在實體欄位上加上 @JSONField(format = "yyyy-MM-dd HH:mm:ss") public class CardDetailVO implements Serializabl
ubuntu下更改預設python版本及wxpython庫安裝
最近課程設計需要在python3的環境下執行,雖然未必需要修改預設環境,但是還是改一下比較舒服。首先檢視Ubuntu系統已安裝的python版本及當前使用的python版本 python --version然後設定update-alternatives
redhat雙系統,如何更改預設啟動順序
以root使用者進入linux,在/boot/grub/下找到menu.lst檔案,該檔案就是負責安排啟動順序的。 [[email protected] ~]# vim /boot/grub/menu.lst # grub.conf generated by an
Ubuntu 16.04下 更改mysql預設編碼
預設的 mysql編碼 不是utf8 因此想到要改成utf8 以支援中文 my.cnf 這個配置檔案如果為空或不存在的時候mysql採用預設配置執行,這個沒有多大關係。 如果你需要做相關配置則可以拷貝任意一個配置檔案到/etc目錄下,然後根據你的實際需要進行修改就可以了。