-
I defined a function module in func.py, tried to I am able to import any dependencies in my env but my own python scripts. Can somebody help me with this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The python import function uses the following looks to find packages and modules to import:
If you're unable to import any other scripts other than what's in your project, they likely aren't installed at all, or they aren't installed anywhere in these 4 places. The general workflow is to create a virtualenv, and use pip to install dependencies before running your scripts. Best of luck! |
Beta Was this translation helpful? Give feedback.
The python import function uses the following looks to find packages and modules to import:
CWD
or the current working directory. This is the directory the python interpreter was launched fromPYTHONPATH
environment variable. This is an environment variable you can set before launching the python interpreter to add additional directories to look for packages and modules to importsys.path
list in the program. This can be modified in the code to add additional places to look for packages and modulesIf you're unable to import any other scripts other than what's in your project, they likely aren't installed at all, o…