Install PyFemtet
This page shows how to install/update pyfemtet.
The both are the same procedure.
This step requires administrator privileges.
Note
This procedure requires Python 3.11, 3.12 or 3.13. If you are installing PyFemtet on a different version of Python, follow the manual instructions at the end of this page.
Please download the following file.
Run the following command on administrative
Command Prompt.powershell -ExecutionPolicy Bypass -File <path/to/your/downloaded/.ps1>
Note
Please don’t forget to replace <path/to/your/downloaded/.ps1> to
the path of the pyfemtet-installer.ps1 file you downloaded.
You can acquire the path by Shift+Right-clicking the file and
select “Copy as a path”.
Warning
*Security Warnings*
This command temporarily relaxes the security requirements to run powershell script. Before executing this command, please ensure that the .ps1 file you specifying is the one downloaded from the above source.
Warning
This script assumes that your Python installation includes py launcher. If you have done a custom installation of Python, make sure that your installation configuration includes the py launcher.
Tip
If you want to configure pyfemtet in a virtual environment (or anyway without py launcher), change line 24 of the script to the following, activate the virtual environment, and run the script from the command line:
$python_command = "python"
Check the Installation of PyFemtet
If you want to check the installation later, please follow the steps below.
Press the Windows key and open the Command Prompt.
Type
py -m pip show pyfemtetand press Enter. (py -m pip show pyfemtet-opt-guifor GUI tool)If you get the following result, the setup was successful. ( If you see the message
'py' is not recognized as an internal or external command, operable program or batch file., Python is not installed.If you see the message
WARNING: Package(s) not found: pyfemtet(orpyfemtet-opt-gui), PyFemtet (or its GUI tool) is not installed. )
Manual Installation
If this step fails, try the following steps manually: