> ## Content Index
> Fetch the complete content index at: https://bongholee.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PYMC 5 설치
- URL: https://bongholee.com/pymc-5-seolci/
- Published: 2024-04-18T05:18:24.000Z
- Updated: 2024-04-18T05:18:24.000Z
- Author: Bongho Lee
- Tags: Data, #Import 2026-11-22 06:32

## 배경

- PYMC3는 Python 3.12이상의 버전과 호환이 잘 되지 않던 차에 [PYMC](https://www.pymc.io/projects/docs/en/stable/learn/core%5Fnotebooks/pymc%5Foverview.html?ref=bongholee.com)가 있다는 것을 알게 되었다.
- 설치를 하려고 하는데 에러가 꽤 많이 난다. 이에 대해 별도로 정리를 해놓았다

### 핵심

```shell
conda create -c conda-forge -c nodefaults --name FootballAnalytics "pymc>=5.10" "numpy=1.25.2"

```

### 설명

- Numpy는 1.25.2가 가장 안정적이다. 안그럴 경우 다음 에러 발생 가능

```python
module 'numpy.__config__' has no attribute 'get_info'

```

- Anaconda의 Channel로 하면 Default인데, 상대적으로 업데이트가 느리기 때문에 Conda-forge를 채널로 사용한다.

### References

- [https://www.pymc.io/projects/docs/en/stable/learn/core\_notebooks/pymc\_overview.html](https://www.pymc.io/projects/docs/en/stable/learn/core%5Fnotebooks/pymc%5Foverview.html?ref=bongholee.com)
- [https://github.com/pymc-devs/pymc/issues/7043](https://github.com/pymc-devs/pymc/issues/7043?ref=bongholee.com)