Python for PSSE help forum - Individual question feedhttp://psspy.org/psse-help-forum/questions/A community for Power Systems Engineers to ask and answer questions about Pythonenwhit loves you. Mon, 16 May 2022 10:54:51 -0500Problem importing matplotlib.pyplot and numpy in python2.7http://psspy.org/psse-help-forum/question/9141/problem-importing-matplotlibpyplot-and-numpy-in-python27/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" Tue, 10 May 2022 21:05:02 -0500http://psspy.org/psse-help-forum/question/9141/problem-importing-matplotlibpyplot-and-numpy-in-python27/Answer by jconto for <p>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</p>
<p>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.</p>
<p>I tried using python39 since numpy and matplotlib is already installed. But I cannot proceed further as error is there "dyntools - bad magic number" </p>
http://psspy.org/psse-help-forum/question/9141/problem-importing-matplotlibpyplot-and-numpy-in-python27/?answer=9149#post-id-9149If 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.
Mon, 16 May 2022 10:54:51 -0500http://psspy.org/psse-help-forum/question/9141/problem-importing-matplotlibpyplot-and-numpy-in-python27/?answer=9149#post-id-9149