anaconda – Python package installed in environment not recognized
If a Python package installed in your Anaconda environment is not recognized , you can follow these troubleshooting steps:
-
Active the Correct Environment: Ensure that you have activated the Anaconda environment where the package is installed. Use this following command –
conda activate your_env_name -
Check Installed Packages: Verify that the package is installed in the active environment by running:
conda listor
pip list
Install the Package: If the package is not listed, you may need to install it. You can do this using either conda Or pip:
-
Using conda:
conda install package_name -
Using pip:
pip install package_name4.4.Check Python Path: Make sure your Python interpreter is pointing to the correct Anaconda environment. You can check this with:
import sysprint(sys.executable)
Read more here: Source link
