Python Forum
Package installed through Anaconda "not found" by Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Package installed through Anaconda "not found" by Python
#1
I'm trying to install the python package "quspin" on windows through Anaconda, following the instructions here:
http://weinbe58.github.io/QuSpin/Installation.html

I start Anaconda as admin and click on "cmd.exe". Then, to install the package, I run
conda install -c weinbe58 quspin
Then, I can look at the packages in the Environment of Anaconda and I see "quspin" listed. Then in that same terminal I start python, and run some simple code to see if the package is working:
from quspin.operators import hamiltonian
However this returns the error
Error:
ModuleNotFoundError: No module named 'quspin'
So I restart anaconda, check the environment and quspin is still listed there, then restart "cmd.exe" and start python through this and try it again, but I get the same result. Also when I run help('modules') in python, I don't see "quspin" in the list of modules.

If I try starting pycharm and using the python from Conda for a project, then in the list of modules in the "Python Interpreter" section of the settings, I see that it lists "quspin" as one of the modules. However, when I try the same code as above in a python file in pycharm, I get the same error. What is going on here?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Launcher (on Windows) only necessary when 2 or more Python versions installed? pstein 1 306 Feb-17-2024, 12:43 PM
Last Post: deanhystad
  How to run utilities from a Python package? LugosisGhost 1 426 Dec-27-2023, 12:00 PM
Last Post: Larz60+
  Anaconda 2.4.2: The JupyterLab 3.5.3 fails to run the python code of the Geographical jamalnuman 0 330 Aug-23-2023, 07:48 AM
Last Post: jamalnuman
  I found a problem with Python Lahearle 12 1,441 Jul-20-2023, 10:58 PM
Last Post: Pedroski55
  when package built, requirements not installed sabuzaki 1 736 Apr-07-2023, 09:01 AM
Last Post: sabuzaki
  Python package not seen in VSCode fmccabe80 6 3,178 Mar-06-2023, 10:01 PM
Last Post: fmccabe80
  pdfminer package: module isn't found Pavel_47 25 8,786 Sep-18-2022, 08:40 PM
Last Post: Larz60+
  Math Package in python Uma 1 1,488 Dec-12-2021, 02:01 PM
Last Post: jefsummers
  Installed versions of Python SamHobbs 5 2,501 Sep-02-2021, 02:28 PM
Last Post: jefsummers
  How can I found how many numbers are there in a Collatz Sequence that I found? cananb 2 2,524 Nov-23-2020, 05:15 PM
Last Post: cananb

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020