2016年12月7日 星期三

Python third-party module: pyperclip copy and paste on fedora 25

終於揾到點樣在Fedora用pyperclip的copy and paste功能,以下網站有講:
https://pypi.python.org/pypi/pyperclip/1.3

睇返linux嗰行,需要xclip,咁行返: dnf install xclip 依句command便可安裝,之後就可以用pyperclip.copy()/paste()

可以繼續學Python. 多謝!

Missing pip3, Fedora, Python

近期在網上跟住外國的有心人學習Python,Free online book(http://automatetheboringstuff.com/), 學到copy and paste 時要安裝個叫做pyperclip的module,但係裝完都用唔到(未揾到解決方法),但裝時叫我update個pip,咁我咪update咗佢囉,點知overwrite咗個pip3 command,咁諗住用dnf remove咗個python3再裝過,但係佢唔比我remove,咁無咗就直接用dnf install python3-pip裝過,話我己經有而skip咗,搞咗成兩個鐘,上網睇都係教點裝,到最後突然醒起睇過書話係可以強制重裝啲software先至裝得返,就係用dnf reinstall python3-pip 依句command. 好簡單,但係上網揾咗兩個鐘先閃返出黎,依啲就係學咗唔用既結果.

有心人網站: http://automatetheboringstuff.com/
用: Fedora 25,Python 3.5.2
Command: dnf reinstall python3-pip