1.ubuntu20.04下安裝了python3后執行python --version提示python找不到
默認情況下,Ubuntu 20.04隨附Python 3作為默認python版本,它可以作為“ python3”命令而不是“ python”使用,
sudo ln -s /usr/bin/python3 /usr/bin/python
然后提示
ln: 無法創建符號鏈接’/usr/bin/python’: 檔案已存在
這時發現使用命令python --version依然找不到python,提示
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
要解決此問題,請使用以下命令將Python3二進制檔案’/usr/bin/python3’鏈接到’/usr/bin/python’作為默認python命令,
update-alternatives --install /usr/bin/python python /usr/bin/python3 1
2.從pc機拖動檔案到vmware中ubuntu20.04桌面檔案被破壞解決方法
目前的解決方法,卸載open-vm-tools-desktop,命令
sudo apt autoremove open-vm-tools-desktop
重啟電腦,執行下面的命令
sudo apt-get upgrade
sudo apt-get install open-vm-tools-desktop -y
再重啟電腦,ok
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/240583.html
標籤:區塊鏈
上一篇:服務器端編程語言對比:C/C++, C#.NET, Java, Go, Rust
下一篇:mac洗掉頑固檔案
