Friday, 22 September 2017

How many ways to write or execute Python programs and install Python modules ?


PYTHON SETUP
1. Install Python.exe, Set folder path to PATH env var and Use Eclipse
2. Install Python.exe, Set folder path to PATH env var and Use VS Code
3. Install Anaconda (with embedded Python inside) and Use its editor Spider

Example Python folder path to set in PATH var : 
C:\Users\Shaan\AppData\Local\Programs\Python\Python36-32\;.



INSTALLING MODULES
Using PIP installer (In case of Python.exe)
pip install pymysql
pip install python-docx
...
pip list


Using EASY installer
easy_install pymysql
easy_install python-docx
...

Using Anaconda
Install from Anaconda cloud (Search modules at anaconda.org and find correct command)

conda install pymysql
conda install python-docx
...


Using Anaconda console
Open Anaconda console and run pip install command.
pip install pymysql
pip install python-docx
...
pip list


Using Anaconda Navigator
Go to environments and search the package name
Install the package


No comments:

Post a Comment

Note: only a member of this blog may post a comment.