No module named 'quaternion.numpy_quaternion'

See original GitHub issue

I’m trying to install numpy-quaternion:

pip install numpy-quaternion … Successfully installed numpy-quaternion-2020.11.2.17.0.49

but then it fails when I try to import it: image I have checked the folder with __init__.py and there is no numpy_quaternion.py file

I use Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32 np.version.version ‘1.18.1’

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
nathanielvirgocommented, May 22, 2022

In case it helps someone else: I had a similar error to this - after installing numpy-quaternion I got an error “ModuleNotFoundError: No module named ‘quaternion’”.

It turns out this was because I had also installed a package called “quaternion”, probably by accident when I was trying to install numpy-quaternion previously. I could fix the problem by runnning

python -m pip uninstall quaternion

and then, after that, running

python -m pip install --upgrade --no-deps --force-reinstall numpy-quaternion

It really seems I had to do both of those things, in that order, before it would work.

0reactions
kaif2100commented, Dec 9, 2020

Seems, it was true about broken python. I’ve fully reinstalled it and everything works now Thanks 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "No module named 'quaternion'" in Python?
I keep getting the error, 'No module named 'quaternion''. To install the quaternion module to my computer I used my command prompt and...
Read more >
numpy-quaternion - Read the Docs
This Python module adds a quaternion dtype to NumPy. The code was originally based on code by Martin Ling (which he wrote with...
Read more >
ModuleNotFoundError: No module named 'Quaternion'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'Quaternion' How to remove the ModuleN.
Read more >
numpy-quaternion - PyPI
This package creates a quaternion type in python, and further enables numpy to create and manipulate arrays of quaternions. The usual algebraic operations ......
Read more >
python3.9.7报错“no Module named quaternion”_慕木子的博客
问题描述: ... 但是,执行 import quaternion 时,依旧会报错 “no Module named quaternion” .同期还会报 numpy has no attribute 'alen' 。 几经 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found