Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
50 views

Python Module Installation

This document provides instructions for installing Python modules and running Python scripts in Plaxis 2019 and Plaxis Connection v20. It explains that the user should open the Python command prompt as Administrator, use the pip install command to install modules like xlrd, and then they can proceed to run PMG Python scripts, specifying the directory and using import to run .pyd files.

Uploaded by

RAJAT PURWAR
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Python Module Installation

This document provides instructions for installing Python modules and running Python scripts in Plaxis 2019 and Plaxis Connection v20. It explains that the user should open the Python command prompt as Administrator, use the pip install command to install modules like xlrd, and then they can proceed to run PMG Python scripts, specifying the directory and using import to run .pyd files.

Uploaded by

RAJAT PURWAR
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Python Module Installation at First Use

Plaxis 2019

1. Run Plaxis 2019 as Administrator

2. Open Python - > Command Prompt

3. Key in "pip install xlrd" then press "Enter"

4. Proceed to run PMG python script

Plaxis connection v20

1. Run Plaxis connection v20 as Administrator

2. Open Python - > Command Prompt

3. Key in "pip install xlrd" then press "Enter". If a notification got as below, go to step 5, otherwise go
to step 7.

4. Copy file "get-pip.py" to somewhere, e.g. C:\Data\MEZG

5. Then change directory to where you save "get-pip.py" file using "cd" command.
Then run it by Python "Python get-pip.py"

6. Install xlrd module, key in "pip install xlrd" then press "Enter"

7. Proceed to run PMG python script

How to run Python script .pyd file


1. Open Plaxis -> Python - > Command Prompt

2. Change to directory including .pyd file using "cd" + directory, e.g. cd C:\Users\mezg.COWI\
Desktop
3. Type: python -c "import PMG_R04". "import" is followed by pyd file name.

You might also like