Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Short answer, yes you can, Python is designed like that. Use anacoda 3 probably is the best and easiest way. Especailly if you need Python 2 and 3 on the same computer.

The first thing is that do you have to run it in PSSE though? Always remember that Python is an indepedent and general purpose programming language. Unless you need things from the PSSE GUI, like minipulating SLDs or plotting dynamic curve using the GUI functions, you may be better off to run your Python program independengly from the system shell. Remember, you can always use PSSE as a solver.

Ok, now your question. The easily way, you should have a "Prerequisites" folder in your PTI folder. It should have numpy, matplotlib and wxpython installers in there. Install them and you will have matplotlib.

Now, about environments and versions. Yes, you can have different Python environments and versions on one single computer. The easiest thing is to install a Python distribution that has those management built into it, like anacoda 3, which is a popular Python distribution for scientific computing. It is very easy to change Python environment with it and there are tutorials on its website. That's how I manage my Py2 and Py3 environments. Anaconda 3 comes with a ton of packages and you probably do not any more.

Remember, if you work for a corporate, chances are, you do not have admin right and other higher privilages. To pip packages from remote, your corporate network probably won't let you. But, try download the wheels from pipy.org and then install the packages. If you have not got pip already, you still can intall it locally with a wheel. Some packages will have quite a bit dependency, e.g., matplotlib, but as long as you are patient, you can download all needed packages, install them one-by-one, and finally install your target package.

Lastly, this kind of question is really better suited for webs like stackoverflow.