Code: Select all
python3 -m pip install --no-cache-dir --target tf/addons/source-python/packages/site-packages/ PACKAGE
As a test, I was successfully able to install discord.py as a test, and
Code: Select all
import discord
print(discord.__version__)
worked perfectly.
However, importing numpy, or packages that depend on numpy, leads to the following error:
Code: Select all
[Source.Python]
[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/site-packages/numpy/core/__init__.py", line 22, in <module>
from . import multiarray
File "../addons/source-python/packages/site-packages/numpy/core/multiarray.py", line 12, in <module>
from . import overrides
File "../addons/source-python/packages/site-packages/numpy/core/overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/plugins/command.py", line 164, in load_plugin
plugin = self.manager.load(plugin_name)
File "../addons/source-python/packages/source-python/plugins/manager.py", line 184, in load
spec = find_spec(plugin.import_name)
File "../addons/source-python/plugins/overseer/__init__.py", line 1, in <module>
from .overseer import Reeee
File "../addons/source-python/plugins/overseer/overseer.py", line 20, in <module>
import numpy as np
File "../addons/source-python/packages/site-packages/numpy/__init__.py", line 140, in <module>
from . import core
File "../addons/source-python/packages/site-packages/numpy/core/__init__.py", line 48, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.6 from "../addons/source-python/Python3/plat-linux/libpython3.6m.so.1.0"
* The NumPy version is: "1.19.5"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: No module named 'numpy.core._multiarray_umath'
I am eventually trying to install tensorflow, but one step at a time :)