![Python GUIアプリ構築用にダウンロードしたライブラリの使用に問題があります](https://rvso.com/image/1601141/Python%20GUI%E3%82%A2%E3%83%97%E3%83%AA%E6%A7%8B%E7%AF%89%E7%94%A8%E3%81%AB%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89%E3%81%97%E3%81%9F%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AA%E3%81%AE%E4%BD%BF%E7%94%A8%E3%81%AB%E5%95%8F%E9%A1%8C%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99.png)
私は Linux とソフトウェア開発の初心者です。Tkinter と Python を使用して、Raspberry Pi - Arduino システムのフロントエンド GUI を構築しようとしています。コンピューターにアクティブな Tcl と Tkinter のファイルをダウンロードして解凍しましたが、プログラムを実行してデバッグするために必要なライブラリを取得できません。このエラーが発生します。
_tkinter.TclError: Can't find a usable tk.tcl in the following directories:
/usr/local/lib/tcl8.6/tk8.6 /usr/local/lib/tk8.6 /usr/lib/tk8.6 /usr/lib/tk8.6 /lib/tk8.6 /usr/library
sudo ./install.sh を実行してデフォルト フォルダーに配置し、/usr/local/lib/ ディレクトリと /usr/local/lib/lib/ に tcl8.6 というラベルの付いたフォルダーを作成しました。何が間違っているのかわかりません。この時点で、コンピューターには不適切にダウンロードされたライブラリがいっぱいなので、いくつかのファイルを保存して OS をリセットすることを検討しました。私は elementary OS 5.0 juno を実行しています。
私はこれが何であれ、そんなことはしていないと信じています。
After installation, make sure that the directory containing the installed executables (ActiveTcl/bin) is included in your PATH variable.
export PATH="/opt/ActiveTcl-8.6/bin:$PATH"
You can also add the man directory to your path to access the man page documentation on the command line.
export PATH="/opt/ActiveTcl-8.6/man:$PATH"
答え1
sudo apt-get update
パッケージのバージョンとソースのリストを更新してから、、、sudo apt-get install tk
およびsudo apt-get install tcl
を試してくださいsudo apt-get install libtcl8.5
。