The fix for error importerror no module named simple_salesforce is to install simply simple_salesforce python package. The above error comes when either simple_salesforce package is not installed or its path is not correct as per the configuration.
Well, In this article we will explore the various ways to fix the above error.
Importerror no module named simple_salesforce : ( Solution )
Lets see the solution in chunks.
Method 1 –
The first and most convenient way is to use pip package manager. Here is the command for pip package manager.
pip install simple-salesforce
Incase if python 3, You may try the below command too.
pip3 install simple-salesforce
Also if you need admin rights in terminal/ cmd you may add sudo in any of the above commands. For example,
sudo pip3 install simple-salesforce
OR
sudo pip install simple-salesforce
Method 2 –
Conda package manager is similar as pip. It comes with Anaconda distribution. Anaconda is the most popular data science distribution. In development industry it is most common way to install any python package using conda. Just in single line, we can install the simple-salesforce package. Here is the main command for this.
conda install -c conda-forge simple-salesforce
If the above command is not working for you , Go with the other alternate commands. The below commands use different mirrors.
conda install -c conda-forge/label/cf201901 simple-salesforce
conda install -c conda-forge/label/cf202003 simple-salesforce
simple-salesforce is a python interface for SalesForce, it an alternative to hit REST API for official SalesForce API using python. As you already python share in development market. Also the simple-salesforce is too syntax friendly I hope the above details are enough to fix the above error. Still, If you stuck in the same issue or finding some complexity in it, please comment us in the comment box. Also if you know some other ways to fix this error, please send the details, We will add in the same article , So it will help the other readers.
Thanks
Data Science Learner Team
Join our list
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.