简体   繁体   中英

Error importing requests into python

I am writing a Merchant Data Export API in Python (Pydev plugin for eclipse) and I cannot import requests, is there some option for managing imports? I have the requests-master folder in my project, downloaded from GitHub . I have read the following articles for downloading and installing , but nothing works for me.

I am a new python user but would like to learn more. Thanks for any help!

如果您只是执行pip install requests ,则应该可以正常工作(问题是您可能没有将适当的文件夹添加到PYTHONPATH中,以使PyDev识别您下载的requests模块...使用pip应该为您做正确的事情无需其他配置)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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