ubuntu安装numba
时间: 2023-10-17 17:34:08 浏览: 120
Python库 | numba-0.55.0rc1.tar.gz
5星 · 资源好评率100%
在Ubuntu系统上安装Numba,您需要先手动安装LLVM和llvmlite。首先,您可以按照以下步骤安装LLVM:
1. 下载适用于您的Ubuntu版本的LLVM安装包。
2. 解压缩下载的安装包。可以使用以下命令:
```
tar -xf clang llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz
```
3. 进入解压后的文件夹:
```
cd clang llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04
```
4. 将LLVM安装到系统目录中:
```
sudo cp -R * /usr/local/
```
接下来,您可以按照以下步骤安装llvmlite和Numba:
1. 安装llvmlite:
```
pip install llvmlite
```
2. 安装Numba:
```
pip install numba
```
请注意,在安装Numba之前,确保您已经安装了LLVM和llvmlite的依赖库,以避免出现网络不可达的警告。可以使用以下命令安装依赖库:
```
apt-get install llvm
```
这样,您就可以在Ubuntu系统上成功安装Numba了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ubuntu安装numba详细指令亲测有效](https://blog.csdn.net/benchuspx/article/details/109152810)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [clang+llvm-10.0.0-x86_64-linux-gnu-ubuntu-18.04.tar.xz](https://download.csdn.net/download/aptx9688/12816095)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [ubuntu20.04安装numba](https://blog.csdn.net/zyntj1992/article/details/121227781)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文