简体   繁体   English

ModuleNotFoundError:没有名为“simple_salesforce”的模块

[英]ModuleNotFoundError: No module named 'simple_salesforce'

I'm VERY new to python, but am somewhat familiar with Salesforce apex, so I thought I'd start out on a project.我对 python 非常陌生,但对 Salesforce 顶点有点熟悉,所以我想我会开始一个项目。

I downloaded simple_salesforce to my raspberry pi, but whenever I try to run the import command so that I can login to Salesforce, it says the module is not found.我将 simple_salesforce 下载到我的树莓派,但每当我尝试运行导入命令以便我可以登录到 Salesforce 时,它都说找不到模块。

Can someone help me on where I'm going wrong?有人可以帮我解决我哪里出错了吗? enter image description here在此处输入图像描述

You probably didn't install the module, just downloaded it.您可能没有安装该模块,只是下载了它。 Open a terminal and install it using pip:打开一个终端并使用 pip 安装它:

pip install simple-salesforce

You might need to change "pip" to "pip3" as you're using Python 3.在使用 Python 3 时,您可能需要将“pip”更改为“pip3”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM