conda numpy not found
时间: 2023-10-02 10:11:45 浏览: 62
numpy安装方法.rar
If you are trying to import numpy in a Python script and you are getting a "ModuleNotFoundError: No module named 'numpy'" error, it means that numpy is not installed in your environment. To install numpy, you can use Conda, which is a package manager that allows you to easily install, manage, and update packages in your environment. To install numpy using Conda, follow these steps:
1. Open a terminal or command prompt.
2. Activate your conda environment by running `conda activate <environment_name>` (replace `<environment_name>` with the name of your environment).
3. Run the command `conda install numpy`.
This should install numpy in your environment. Once numpy is installed, you should be able to import it in your Python script without any issues.
阅读全文