Importing CPM #63
Replies: 2 comments 3 replies
-
|
Thanks for reporting this. I will go one by one. The first point is about In terms of the Spyder issue, I need more information. Can you please first of all share the output of Furthermore, can you please also share the output of the following commands? # In Spyder
import sys
print(sys.executable)In the command line: ## In the command line
conda activate my-env
where python # (or 'which python' on Mac/Linux) |
Beta Was this translation helpful? Give feedback.
-
|
It seems that it has been resolved via this #63 (reply in thread). So, I will close this issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I installed CPM on my pc (running Windows 11) using
pip install git+https://github.com/DevComPsy/cpm.git. I did this using Anaconda Prompt, and made sure to install it in the same environment as my Python interpreter in Spyder (i.e., my-env). If I saypip show cpm-toolbox, it gives me the correct information (e.g., I installed version 0.23.18, etc.). FYI,pip show cpmdoes not work (it says there is no such package), but perhaps that's fine.In the past, I used to be able to use the CPM toolbox without issues after installing it in this way. Now, however, if I open Spyder (with the correct interpreter) and say
import cpm, it gives me aModuleNotFoundError: No module named 'cpm', also after restarting the kernel. I am not sure this is an issue with CPM or something else, but importing other modules (like numpy or scipy) works fine.I should perhaps mention that Anaconda Prompt does keep giving me the following warning with practically every command I run, but I doubt that it is the cause of the problem:
WARNING: Ignoring invalid distribution ~cipy (C:\Users\XXXXX\AppData\Roaming\Python\Python313\site-packages). I already uninstalled and reinstalled scipy but the warning remains. Just mentioning it in case it turns out to be relevant after all.Does anyone have suggestions on how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions