alanwhy

关注

mac os上python报错 fatal error: 'Python.h' file not found

alanwhy

关注

阅读 77

2023-04-02

1. 安装python (可安装任意版本)

brew install python@3.9

 

2. 创建虚拟环境

cd ~

/opt/homebrew/bin/python3.9 -m venv ai3.9

 

3. 激活虚拟环境

source ~/ai3.9/bin/activate

 

4. 安装

pip install xxx

 

黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/



相关推荐

zhoulujun

fatal error: Python.h: No such file or directory

zhoulujun 114 0 0

大柚子top

Python.h:No such file or directory

大柚子top 144 0 0

云朵里的佛光

Mac下clion中 fatal error: ‘bits/stdc++.h‘ file not found

云朵里的佛光 115 0 0

往复随安_5bb5

mac笔记本jni错误 fatal error: 'asm/types.h' file not found

往复随安_5bb5 98 0 0

墨春

qtcreator报错:fatal error: stdlib.h: No such file or directory

墨春 240 0 0

烟中雯城

LINUX随笔二十七 src/MD2.c:31:20: fatal error: Python.h: No such file or directory

烟中雯城 113 0 0

辰鑫chenxin

Python报错:python.h 没有那个文件或目录

辰鑫chenxin 165 0 0

Soy丶sauce

ubuntu编译软件报错:fatal error: libnet.h: No such file or directory

Soy丶sauce 32 0 0

Go_Viola

程序报错:Probable fatal error:No fonts found.

Go_Viola 137 0 0

素锦时年_1b00

fatal error: ‘type_traits‘ file not found错误解决

素锦时年_1b00 47 0 0

精彩评论(0)

0 0 举报