I'm trying to import python module requests in a program that uses python (Choregraphe for NAO the robot). I can't use shell commands like sudo install etc... I can only import module by moving the module into lib folder of the project.
So I've downloaded requests from pypi, and I've also downoaded requirements that I've moved into requests folder (https://i.imgur.com/XXlSz0N.png). But when I try to import requests from the program, it returns me an error:
File "C:\Users\gurfe\AppData\Roaming\PackageManager\apps\.lastUploadedChoregrapheBehavior\behavior_1\../lib\requests\__init__.py", line 112, in <module>
from . import utils
ImportError: cannot import name utils
Why do I see this error?
requests
folder. The dependencies are python modules just likerequests
, so they should be in the same folder asrequests
. – Aran-Fey Mar 23 '18 at 17:53pip install requests
. – abarnert Mar 23 '18 at 17:54pip install --user requests
? – Aran-Fey Mar 23 '18 at 17:58