0

Problem importing matplotlib.pyplot and numpy in python2.7

I face problem while importing matplotlib.pyplot and numpy. I am using python2.7 for psse33 so that I can use dyntools. Tried installing using pip but error pops up. Help please

So I want to plot multiple channel out files so that multiple cases for different channels can be seen as a plot. I use python2.7 for psse33 to utilize dyntools module. But I cannot use numpy and matplotlib as this aren't already installed in pss33 packages. I tried to install using pip install numpy command but error pops up.

I tried using python39 since numpy and matplotlib is already installed. But I cannot proceed further as error is there "dyntools - bad magic number"

brownkid's avatar
11
brownkid
asked 2022-05-10 21:05:02 -0500
jconto's avatar
2.9k
jconto
updated 2022-05-16 12:22:44 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

If you want multiple python versions installed, during a python installation, do not 'check' the option to 'set as default' for any python version. To activate a version, open a CMD window, set the environ variable "PYTHONHOME" to the path of the python version to be activated (like PYTHONHOME=c:\python27)

On situations like yours, I would uninstall all python versions and PSSe versions as well, then install them back. Every python installed should allow for adding additional modules using pip, else something went wrong.

jconto's avatar
2.9k
jconto
answered 2022-05-16 10:54:51 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer