最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

data science - Python Install Darts: No module named 'numpy' - Stack Overflow

programmeradmin3浏览0评论

I'm trying to install the Darts package in python, but it fails because I get:

ModuleNotFoundError: No module named 'numpy'

I have numpy installed however.

I've also tried uninstalling and reinstalling (in both pip and package manager) but with no luck. I'm using python 3.13.1 in pycharm

Thanks

I'm trying to install the Darts package in python, but it fails because I get:

ModuleNotFoundError: No module named 'numpy'

I have numpy installed however.

I've also tried uninstalling and reinstalling (in both pip and package manager) but with no luck. I'm using python 3.13.1 in pycharm

Thanks

Share Improve this question edited Feb 14 at 22:15 Charles Duffy 296k43 gold badges433 silver badges486 bronze badges asked Feb 14 at 16:41 PolarProPolarPro 12 bronze badges 4
  • I'm going to guess that you have more than one installation of Python. – John Gordon Commented Feb 14 at 16:43
  • 1 Please edit the question and add two things: the output of this command pip show numpy, and the output of this code import sys; print(sys.path) – John Gordon Commented Feb 14 at 16:44
  • in both pip and package manager What is the "package manager" other than pip? – John Gordon Commented Feb 14 at 16:45
  • 3 The only acceptable way to mark a question solved on Stack Overflow is to click the checkbox by an answer. We do not allow "solved" to be edited into titles, nor do we allow answers to be edited into questions: If you solved your problem yourself, use the "Add an Answer" button to add your own answer, don't put the answer in the text of the question. – Charles Duffy Commented Feb 14 at 22:15
Add a comment  | 

2 Answers 2

Reset to default 0

It is because you don't have good package management system in your repo.

I suggest using poetry in your repository. It will be easier to use then creating multiple python virtual env yourself and you will be able to manage packages, their dependencies.

So don't delete any code, just implement poetry into your repository and define needed packages in pyproject.yml

I installed anaconda and was then able to install Darts with no issue.

发布评论

评论列表(0)

  1. 暂无评论