简体   繁体   中英

Import requests module not working although it has already been installed properly

My code is

import requests

and and when I run this code I get:

ImportError: No module named requests

I already have requests installed on my mac:

在此处输入图像描述

try pip installing other packages to see if your import call can find it. if it couldn't work. you have to reinstall python, in the set up, make sure you tick add python to path. if you do this and still get the same module error. use a another version of python

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