我有一个非常令人困惑的问题:
我使用tkinter构建了一个python程序。然后,我将ubuntu 13.10(amd64)远程升级到ubuntu 14.04 LTS,现在我尝试运行tkinter程序。我的编译器告诉我
ImportError: No module named tkinter
(与Tkinter或tk / Tk相同)然后,我尝试使用pip重新安装tkinter:
$ pip install tkinter
Could not find any downloads that satisfy the requirement tkinter
Cleaning up...
No distributions at all found for tkinter
再次与Tkinter,tkinter,tk和Tk相同
所以发生了什么事?我必须运行类似的东西吗
$ pip update
(因为tk不再位于pip存储库中),但是为什么我的PC上不再安装了tk?
编辑:1.我没有root访问权2.在pip.log中是
>
Downloading/unpacking tk Getting page
> https://pypi.python.org/simple/tk/ Could not fetch URL
> https://pypi.python.org/simple/tk/: 404 Client Error: Not Found Will
> skip URL https://pypi.python.org/simple/tk/ when looking for download
> links for tk Getting page https://pypi.python.org/simple/ URLs to
> search for versions for tk: * https://pypi.python.org/simple/tk/
> Getting page https://pypi.python.org/simple/tk/ Could not fetch URL
> https://pypi.python.org/simple/tk/: 404 Client Error: Not Found Will
> skip URL https://pypi.python.org/simple/tk/ when looking for download
> links for tk Could not find any downloads that satisfy the
> requirement tk
当我尝试不运行而在RaspberryPi上使用apt安装某些东西时,发生了一些非常接近的事情
$ apt-get update
几个月
我很乐意提供帮助。