简体   繁体   English

尽管已安装开发包,但找不到tk.h

[英]Cannot find tk.h despite having the dev packages installed

I am trying to install wck . 我正在尝试安装wck But I ran into the following error when running setup.py : 但是我在运行setup.py时遇到以下错误:

fatal error : tk.h : no such file or directory

But I already have all the -dev packages installed! 但是我已经安装了所有-dev软件包! I went on and installed tk-dev, tk8.5-dev and tk8.4-dev and the problem persists. 我继续安装tk-dev,tk8.5-dev和tk8.4-dev,问题仍然存在。 I did a 'locate tk.h' and there was no tk.h anywhere in my system. 我做了一个“定位tk.h”,系统中的任何地方都没有tk.h。 Wherever this problem was reported, people were trying to get tcl.h too. 无论在哪里报告此问题,人们都在尝试获取tcl.h。 So I did a sudo apt-get install tcl-dev and did a 'locate tcl.h'. 所以我做了一个sudo apt-get install tcl-dev并做了一个'locate tcl.h'。 Nothing! 没有! Where did all the header files go? 所有头文件都放在哪里?

Your problem is, that WCKs setup.py and setuplib.py don't have a clue where to look with the layout on your system, so you will have to fix those to get it working. 您的问题是,WCK的setup.pysetuplib.py不知道在哪里查看系统布局,因此您必须对其进行修复才能使其正常工作。

I assume your using some variant of Debian Linux there, so maybe have a look at their guidelines for packaging Tcl/Tk. 我假设您在那里使用了Debian Linux的某些变体,所以也许看看他们包装Tcl / Tk的指南。

Basically they recommend adding configure switches like: 基本上,他们建议添加配置开关,例如:

    --with-tcl=/usr/lib/tclX.Y
    --with-tk=/usr/lib/tkX.Y
    --with-tclincludes=/usr/include/tclX.Y

http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ap-debian_oddities.html http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ap-debian_oddities.html

http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ch-tcltk.html http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/ch-tcltk.html

With that info, you might be able to get it to work by editing setup.py and simply adding a version of find_tk() that works for your system. 使用该信息,您可以通过编辑setup.py并简单地添加适用于您的系统的find_tk()版本来find_tk()工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到用pip安装的软件包 - Cannot find packages installed with pip 使用 pip 安装 uwsgi 时出错:“Python.h 没有这样的文件”。 安装了 python-dev 和 python3-dev 包 - Error installing uwsgi with pip: "Python.h no such file". python-dev and python3-dev packages are installed PyCharm 找不到已安装的包:keras - PyCharm cannot find installed packages: keras 尽管已安装 python 模块,但无法导入它们 - cannot import python modules despite having installed them makecython ++导致致命错误:Python.h:尽管安装了python3-dev,但没有这样的文件或目录 - makecython++ causes fatal error: Python.h: No such file or directory despite python3-dev installed /usr/local/include/tk.h:71:13:致命错误:安装python库时找不到'X11 / Xlib.h'文件 - /usr/local/include/tk.h:71:13: fatal error: 'X11/Xlib.h' file not found when install python library 尽管没有在该环境中安装软件包,为什么我的python程序仍在我的虚拟环境中正常运行? - Why is my python programme running correctly in my virtual environment despite not having the packages installed in that environment? MacOS Catalina,pip 已经安装了软件包,但是 python 找不到它们? - MacOS Catalina, pip has installed packages but python cannot find them? rpy2找不到安装的外部R软件包 - rpy2 cannot find installed external R packages 尽管安装了 tensorflow 2.0.0-beta1,但无法使用 pip 安装 tensorflow-text - cannot install tensorflow-text using pip despite having tensorflow 2.0.0-beta1 installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM