admin管理员组

文章数量:1414937

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

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

Share Improve this question edited Mar 10 at 15:09 desertnaut 60.5k32 gold badges155 silver badges182 bronze badges asked Feb 14 at 16:41 PolarProPolarPro 13 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, then in pycharm selected anaconda as my interpreter. After doing that, I was able to install Darts with no issue.

本文标签: pythonNo module named 39numpy39 while isntalling DartsStack Overflow