I install the project dependencies with pip. Pip install all its dependencies to this location
Location: /home/tara/taraproject/myvenv/lib/python2.7/site-packages
What I want to accomplish:
I want to put all the dependencies with the project rather than making the users to set it up during the operations.Just trying to remove the installation burden to the operation team.
What I tried ?
I tried this inside my ProjectFolder,where my working project exist
/home/tara/taraprject/ProjectFolder
I created a directory called dependencies and tried to add all the dependencies module inside it.Than made an import as.
from dependencies.yapsy.PluginManager import PluginManager
I have also made the directory as modules by adding the init.py file.
Traceback (most recent call last):
File "main.py", line 16, in <module>
from dependencies.yapsy.PluginManager import PluginManager
File "/home/tara/taraproject/myvenv/checkaccess/dependencies/yapsy/__init__.py", line 73, in <module>
from yapsy.compat import is_py2, str
ImportError: No module named yapsy.compat
Looks like the import was working but the internal code of the modules had an error with such import.
Why Trying So ?
If I can do so the operation team can just get my project and run it easily without a need to download the dependencies and make necessary setup.Just want to make the operation part easier
How do I fix such problems or what is the way to do it ?