VisualStudio找不到Python.h
最近在使用C/C++开发Python的扩展模块,由于笔记本的性能较差,因此没有使用VS自带的conda环境,而是自己安装了一个Python核心解释器,但是使用VS2019创建项目的时候,代码大片飘红,提示找不到Python.h,如下所示:
如果你遇到这个问题,那么请在系统环境变量中配置一个PythonHome的变量并指向Python的安装路径:
然后重启VS即可。注意那个变量值的后边要加上斜杠,否则还会报错。
VisualStudio找不到Python.h相关推荐
- ubuntu17 python3.6 出错 找不到 Python.h 安装uwsgi
在virtualenv中使用python3.6安装uwsgi时,老是提示找不到 Python.h plugins/python/uwsgi_python.h:2:10: fatal error: Py ...
- python没有那个文件或目录_fatal error: Python.h: 没有那个文件或目录 解决方法
今天安装scrapy 先说下环境 Ubuntu16.04 系统默认Python 2.7.12 (default, Nov 19 2016, 06:48:10) ,安装过anaconda(很关键,里面有 ...
- gcc编译c文件 python.h 未找到
windows 下默认路径找不到python.h gcc -c -I d:/ProLang/python379/include parser.c -o parser.so 加上文件路径就可以了. GC ...
- python3 centos7 Python.h无法找到
环境python3.6.centos7 安装geohash包时报错"致命错误:Python.h:没有那个文件或目录" 运行如下命令即可 yum install -y python3 ...
- centos7安装twisted出现“致命错误:Python.h:没有那个文件或目录”的终极解决办法
新安装的centos7,yum也update了,许多插件都安装了.可是在安装twisted时出现了: ERROR: Command errored out with exit status 1: ...
- uwsgi 安装报错 plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
1. Python3 安装 uwsgi 报错 直接使用命令 sudo pip3 install uwsgi 安装如下错误: ubuntu@ubuntu:~/Downloads$ sudo pip3 i ...
- Python.h: No such file or directory
安装python-devel包解决这个问题 # pip install netifaces DEPRECATION: Python 2.6 is no longer supported by ...
- fatal error: Python.h: No such file or directory 解决
[常见错误] fatal error: Python.h: No such file or directory 环境场景 系统: Parrot Linux 软件: 系统python默认版本2.7 Py ...
- 致命错误: Python.h:没有那个文件或目录
In file included from greenlet.c:5:0: greenlet.h:8:20: 致命错误: Python.h:没有那个文件或目录 编译中断. error: Setup s ...
最新文章
- ELK logstash 配置自定义字段为索引
- DEV控件Grid显示行号
- Linux学习:第三章-Linux常用命令-2
- android 字符串转浮点,Android String类型转换为float、double和int的工具类方法
- php 生成随机数组,利用php如何获取随机数组列表
- Do Now 一个让你静心学习的APP——团队博客
- Georgia Tech - machine learning 学习笔记一
- Spring AOP--Aspect的CGLib方式
- 组织结构及权限模型设计
- 教务系统的服务器管理,勤哲Excel服务器在学校教务管理中的应用
- 读胡适先生《赠与今年的大学毕业生》和《赠与大学毕业生的话》后感
- Anaconda常用命令小结
- 51单片机之模拟IIC总线
- 加拿大康考迪亚计算机工程,加拿大康考迪亚
- 量子点对垒OLED,到底哪家强?
- Java jdk源代码的Math包
- DeleteObject()的使用
- 房价是鹤岗2倍多,这座小城有星巴克、沃尔玛和三甲医院
- 修改oracle nls_language
- UNOVO联永羲和开源项目